how to save and load timer?!
#2

You can replace the
korhaztimer[playerid] = SetTimerEx("exithospital", 60000, true, "d", playerid);
To
korhaztimer [playerid]=6;
And save it to a mysql variable in database then put the code on a timer of a second who repet
Ifkorhaztimer [playerid]>0;
Korhaztimer [playerid]--;// and save it to mysql

And don't forget to put at onplayerlogin the load variable from mysql database
Reply


Messages In This Thread
how to save and load timer?! - by BrnX - 16.09.2017, 09:06
Re: how to save and load timer?! - by Mister0 - 16.09.2017, 09:44
Re: how to save and load timer?! - by BrnX - 16.09.2017, 10:11

Forum Jump:


Users browsing this thread: 1 Guest(s)