president vankk
Web Developer & AuraOT Owner
- Joined
- Jul 10, 2009
- Messages
- 5,719
- Solutions
- 9
- Reaction score
- 339
Hi folks!
I'm trying create a reset system for TFS 1.2 and I'm getting a problem with the function getResets check it below and also the error.
To check how many resets the player has I'm currently using this getResets(cid) and to add a reset getResets(cid) + 1
Thanks.
I'm trying create a reset system for TFS 1.2 and I'm getting a problem with the function getResets check it below and also the error.
Code:
function getResets(cid)
local player = Player(cid)
resets = player:getStorageValue(378378)
if resets < 0 then
resets = 0
end
return resets
end
To check how many resets the player has I'm currently using this getResets(cid) and to add a reset getResets(cid) + 1
Thanks.