03.08.2017, 09:06
Hi all. When I set my timer on GameModeInit with repeat every 1 second, it repeats every ~0,5 seconds.
Код HTML:
SetTimer("Second", 1000, true);
f_public: Second()
{
new String[30];
for(new i; i <= GetPlayerPoolSize(); i++)
{
if(PI[i][Jailed])
{
if(PI[i][JailTime] > 0)
{
PI[i][JailTime] --;
format(String, sizeof(String), "%s", ConvertSeconds(PI[i][JailTime]));
GameTextForPlayer(i, String, 1000, 6);
}
else
{
UnjailPlayer(i);
}
}
}
return 1;
}