Jump to content
  • 0

setVariable zombieKills


peipo118

Question

Hey there smart pple!

 

player setVariable["zombieKills",random_value_here,true];  does only work if the value i want to set is higher than the actual value in database right now. If it is lower it is saved locally and the zombieKills value is changed to the correct one but remains the same as before in database...

 

Any ideas why that is the case and how to solve that problem?

 

 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

The only time the figure is updated to the database is when you kill a zombie. It is read from the database when the player joins and, most likely, checked at other times. Bit of a clue how to find how to update the db yourself, am out at the moment..

Link to comment
Share on other sites

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
  • Advertisement
  • Discord

×
×
  • Create New...