Posts: 384
Threads: 91
Joined: Oct 2010
Reputation:
0
INI_WriteInt(File,"Cash",GetPlayerMoney(playerid)) ;
how to i do i loop this to save every second
Posts: 2,169
Threads: 206
Joined: Jul 2010
Reputation:
0
It's pretty useless to have a loop or a timer going for one second to save it when you can just save it when the player disconnects.
Posts: 41
Threads: 0
Joined: Sep 2012
Reputation:
0
Xtreme Brotherz you didn't helped in nothing, you're doing something useless and it won't work properly, it must be settimerex instead.
Just do what kitten said.
Posts: 2,286
Threads: 18
Joined: Jun 2010
Quote:
Originally Posted by SumX
but if player crashes? or server restarts and the player is still conn?
|
If the player crashes, the data can be saved using OnPlayerDisconnect which will be called when the player disconnects (duh). If the server crashes - bad luck.
Posts: 2,286
Threads: 18
Joined: Jun 2010
Quote:
Originally Posted by Xtreme Brotherz
Sorry to know
I'm not a professional Scripter like you may be..
But pls help him with his question
Cheers
Edit:: Could you tell me what will be the use for SetTimerEx here??
|
A seperate timer with seperate functions for each player.
Posts: 121
Threads: 34
Joined: Mar 2012
Reputation:
0
edited! hopes it got well