Posts: 88
Threads: 28
Joined: Jul 2011
Reputation:
0
Hi,
Can I 'save' the current player's money into a variable on the players death and give the player that money back when he respawns?
Thanks.
Posts: 88
Threads: 28
Joined: Jul 2011
Reputation:
0
No, wait, the player keeps his money when he reconnects. But when the server shuts down and restarts, he has lost his money. Can I dump this variable into a file and then read it again?
Posts: 88
Threads: 28
Joined: Jul 2011
Reputation:
0
So that code dumps it into a file? Sorry, i'm not an expert.
Posts: 7,801
Threads: 187
Joined: Feb 2010
Reputation:
0
Go look at the tutorials board and find a tutorial on how to save a players information into a file- see if you can find one which uses SII or y_ini as those are better... You should understand how to do what you need to do.