SA-MP Forums Archive
Timer won't show right - Why? - 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 won't show right - Why? (/showthread.php?tid=406059)



Timer won't show right - Why? - FL3GM4 - 08.01.2013

Код:
CMD:time(playerid, params[])
{
	new Sati, Min, Sec, string[128];
	gettime(Sati, Min, Sec);
	gettime(JailTimer[playerid]);
	format(string, sizeof(string), "Sada je: %i sati, %i minuta i %i sekundi.", Sati, Min, Sec);
	SendClientMessage(playerid, COLOR_GREEN, string);
	format(string, sizeof(string), "Jos ste zatvoreni %i minuta", JailTimer[playerid]);
	SendClientMessage(playerid, COLOR_GREEN, string);
	format(string,128,"~w~Time Left:~n~~r~%d",JailTimer[playerid]);
	GameTextForPlayer(playerid, string,1000,6);
	return 1;
}
why timeleft of JailTimer won't show right time!?