| Yoko http://forum.yoko.com.ua/ |
|
| How to count 345+556 http://forum.yoko.com.ua/viewtopic.php?f=3&t=16655 |
Page 1 of 1 |
| Author: | Shokarta [ 2011-06-04 19:22:34 ] |
| Post subject: | How to count 345+556 |
Hey guys, on my shard we got a kind of jail (like a warning before they put you into real jail) that you have to answer on a mtch questions for like 15 minutes.... question type: <nick>: How much is 456 + 34? and got to answer in 3s... I dont know how to catch those two numbers into variables, so for now i have all that row from journal saved in variable ROW... and now i need to separate those two numbers to work with that... could anybody help me please? PS: each of those two numbers can have 1 (x), 2 (xx) or 3 (xxx) digits so i cant realy just set an exact position to cut part of the variable.... |
|
| Author: | Scripts Writer [ 2011-06-04 20:38:14 ] |
| Post subject: | Re: How to count 345+556 |
Interesting question if there could be more operators, than '+' (-, *, /). |
|
| Author: | ZeroDX [ 2011-06-05 00:22:17 ] |
| Post subject: | Re: How to count 345+556 |
Парню бы помогли полезности с переведённым описанием) |
|
| Author: | Shokarta [ 2011-06-05 13:47:15 ] |
| Post subject: | Re: How to count 345+556 |
so i have done some work which works up to half way Code: sub karibik() the variable ROW is "<NICK>: How much is 345+556?" so if i untag the row uo.print(row[i]) then injection will print into yournal this: 6 5 5 which is GOOD! but this script has an error BAD OPERATION FOR THIS TYPE OF VARIABLE: NUM2 on row: num2 = num2 + (row[i] * multiply) if i try to put a INT() or VAL() in front of row[i] then the error is gonem but uo.print(int(row[i])) or uo.print(val(row[i])) does show NOTHING at all.... so please if anybodyu can correct me? |
|
| Page 1 of 1 | All times are UTC+02:00 |
| Powered by phpBB® Forum Software © phpBB Limited https://www.phpbb.com/ |
|