Bean666 17 Posted February 23 Share Posted February 23 (edited) why is my health stat not saving, this is the only thing that's not saving on my savesystem, health, datas, etc work, but this don't. onLogin - local purifierHealth = getAccountData( theCurrentAccount, "purifierhealth") setTimer (setPedStat, 500, 1, source, purifierHealth) onQuit - setAccountData(account, "purifierhealth", getPedStat(source, 24)) I even tried putting tonumber on the getPedStat(source, 24) but it still didnt work Edited February 23 by Bean666 Link to post
Moderators IIYAMA 1,247 Posted February 23 Moderators Share Posted February 23 7 hours ago, Bean666 said: I even tried putting tonumber on the getPedStat(source, 24) but it still didnt work The setPedStat was not working, the stat id was not filled in. iprint("purifierHealth", purifierHealth) setTimer (setPedStat, 500, 1, source, 24, purifierHealth) 1 Link to post
Bean666 17 Posted February 23 Author Share Posted February 23 18 minutes ago, IIYAMA said: The setPedStat was not working, the stat id was not filled in. iprint("purifierHealth", purifierHealth) setTimer (setPedStat, 500, 1, source, 24, purifierHealth) thankyou. 1 Link to post
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now