Jump to content

health stat not saving?


Bean666

Recommended Posts

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 by Bean666
Link to post
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)

 

 

 

  • Like 1
Link to post
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.

  • Like 1
Link to post

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...