Hello!
I need help how can i do this:
I have a string storage, example i use
setPlayerStorageValue(cid,18289,"Demon,3,Dragon,4,Cyclops,5")
How can i make for change this storage but counting the number next the comma, example:
Demon,3,Dragon,4,Cyclops,5
I kill 3 demon so:
Demon,6,Dragon,4,Cyclops,5
(i need for a task system)
Is like a string.gsub or string.explode?
I have this to differenciate one each word by comma:
list = tostring(getPlayerStorageValue(cid,18289)):explode(',')
SO, if i call list[1] it show the word "Demon" and if i call list[5] it show Cyclops
Undestood?
Someone can help me. Thanks
I need help how can i do this:
I have a string storage, example i use
setPlayerStorageValue(cid,18289,"Demon,3,Dragon,4,Cyclops,5")
How can i make for change this storage but counting the number next the comma, example:
Demon,3,Dragon,4,Cyclops,5
I kill 3 demon so:
Demon,6,Dragon,4,Cyclops,5
(i need for a task system)
Is like a string.gsub or string.explode?
I have this to differenciate one each word by comma:
list = tostring(getPlayerStorageValue(cid,18289)):explode(',')
SO, if i call list[1] it show the word "Demon" and if i call list[5] it show Cyclops
Undestood?
Someone can help me. Thanks