Hi, sorry for my english.
My question is... Is there any way to save values in a table inside an script and then get these values in another script?
example of what I do and the result i get:
I have a variable in functions:
tableName = {}
then in another script (action script, onUse an item), i insert cid's name in this table:
table.insert(tableName, getCreatureName(cid))
'Then if I print the result of the tableName in functions or in this actions everything is Ok, but if I try to get this value in another script (movement), this table is returned as empty...
Any1 knows why?
Thanks.
My question is... Is there any way to save values in a table inside an script and then get these values in another script?
example of what I do and the result i get:
I have a variable in functions:
tableName = {}
then in another script (action script, onUse an item), i insert cid's name in this table:
table.insert(tableName, getCreatureName(cid))
'Then if I print the result of the tableName in functions or in this actions everything is Ok, but if I try to get this value in another script (movement), this table is returned as empty...
Any1 knows why?
Thanks.