how do you convert this line:
return foreachi(table, function(id, item) if item.sName == %name then return id end end)
of this script http://www.plop.nl/ptokaxbots/OpiumVolage/freeslotbot1.lua to lua5...it seems have a error in %name.
thanks
Thats no longer possible... some 1 correct me if i'm wrong
hi , i got prob with converting script .... i get the error..
scripts\trivia.lua:694: attempt to call global `openfile' (a nil value)
help plz
patience is needed m8, things are not going that fast. though some 1 could help ya :D
LOL ... ok m8 thx
foreach shouldn't ever be used as it's slower then a normal table loop.
the upvallue's used (%name) are removed from lua 5, you need 2 rewrite it fully.
a function inside the function works if you return the locals from the nested function.
lua 5 only handles files by using file handles.
so again here you gotta rewrite the part.
fFile = io.open(filename)
or the new cool way 2 proces every line in a file.
for line in io.lines(filename) do
these things all should be manualy converted as the code differs a bit 2 much on lua 5 (the resulting code is about half the size).
plop
QuoteOriginally posted by Alexandros
how do you convert this line:
return foreachi(table, function(id, item) if item.sName == %name then return id end end)
of this script http://www.plop.nl/ptokaxbots/OpiumVolage/freeslotbot1.lua to lua5...it seems have a error in %name.
thanks
Try just removing the % see what happens ..
worked ok for me in my script :)) :)) :))
??????Hawk??????
hmm ..... still need help .... can some1 help me to convert triv game plz ... it's to big to post here .... ill need to send it some1 if they are able to help
thanks to all :)
QuoteOriginally posted by (uk)jay
hmm ..... still need help .... can some1 help me to convert triv game plz ... it's to big to post here .... ill need to send it some1 if they are able to help
im sure the creater of your triv bot is doing overtime now converting it ...
for now you could use XN with security disabled for games only ..
triv , anagrams , war games , HangMan
??????Hawk??????
Quoteplop wrote:
or the new cool way 2 proces every line in a file.
for line in io.lines(filename) do
This rocked my world, really nice 1. :D
-- // edit
my 1024th post, at last a round number!
QuoteOriginally posted by bastya_elvtars
my 1024th post, at last a round number!
Hehehe,... you geek .. :D