PDA

View Full Version : Timer save problem


jimis
30/12/2015, 09:09 AM
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 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 public efuges(playerid); . Whats wrong guys
? why timer doesent work??

JaKe Elite
30/12/2015, 09:12 AM
You have set the repeating parameter to zero (the one beside pInfo[playerid][giajail]), set it to one or true.


PrepeiVgeis = SetTimerEx("efuges",pInfo[playerid][PrepeiJail] - pInfo[playerid][giajail], true, "i", playerid);

jimis
30/12/2015, 09:19 AM
thanks jake but still not working..

JaKe Elite
30/12/2015, 09:43 AM
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.