Timer save problem - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Timer save problem (
/showthread.php?tid=597360)
Timer save problem -
jimis - 30.12.2015
I am using y_dini to save my stats , i have made a system for save the remaining time on player on jail when he disconnect . When player disconnect everything work fine , all stats save on players file . When he spawn i am using this timer to set player on jail
PHP код:
PrepeiVgeis = SetTimerEx("efuges",pInfo[playerid][PrepeiJail] - pInfo[playerid][giajail],0, "i", playerid);
. The problem is that when he spawn the timer end in 1 second and i receive the message "Yoy have been released" which i have type to show on
PHP код:
public efuges(playerid);
. Whats wrong guys
? why timer doesent work??
Re: Timer save problem -
JaKe Elite - 30.12.2015
You have set the repeating parameter to zero (the one beside pInfo[playerid][giajail]), set it to one or true.
PHP код:
PrepeiVgeis = SetTimerEx("efuges",pInfo[playerid][PrepeiJail] - pInfo[playerid][giajail], true, "i", playerid);
Re: Timer save problem -
jimis - 30.12.2015
thanks jake but still not working..
Re: Timer save problem -
JaKe Elite - 30.12.2015
Does the performance has been affected slightly after you changed the SetTimerEx? You are still having the same problem? Are you sure that the jailTime is saved properly and remains the same when the player logins in? In some cases jailTime sometimes reset if improperly scripted on being saved.