Chady Chaito
New Member
- Joined
- Nov 25, 2013
- Messages
- 11
- Reaction score
- 1
Good evening , I need help because I am implementing a system , and need to know how many times " in life " the player killed and died for another player. How to do this ?
No, it returns -1 by default.cant you have getlayer~~ or 0 instead of math max? since it returns nil if its not been set it should default to 0
function onKill(...)
if target:isPlayer() then
player:setStorageValue(12345, (player:getStorageValue(12345) or 0) + 1)
end
end
player:getStorageValue(...)
If it did return nil the code would not work.oh, my bad then, thought it did![]()