31.08.2013, 19:13
When i use in public -= 1 or -- for one players,vehicles then take 41 of time,fuel and other.
That is in all publics.In this code take 41 seconds of jailtime.When i use stock then is ok,then can't create timer.
Sry for English.
That is in all publics.In this code take 41 seconds of jailtime.When i use stock then is ok,then can't create timer.
Sry for English.
Код:
public IzlazakT() { new string[128]; for(new i = 0; i < MAX_PLAYERS; i++) { if(PlayerInfo[i][pJailed] == 2) { if(PlayerInfo[i][pJailTime] > 0) { PlayerInfo[i][pJailTime] -= 1; } if(PlayerInfo[i][pJailTime] == 0) { PlayerInfo[i][pJailTime] = 0; SetPlayerInterior(i, 0); PlayerInfo[i][pJailed] = 0; SetPlayerPos(i, 1767.88, -1613.29, 13.52); return 1; } } if(PlayerInfo[i][pJailed] == 1) { if(PlayerInfo[i][pJailTime] > 0) { PlayerInfo[i][pJailTime] -= 1; } if(PlayerInfo[i][pJailTime] == 0) { PlayerInfo[i][pJailTime] = 0; SetPlayerInterior(i, 0); PlayerInfo[i][pJailed] = 0; ClearCrime(i); SendClientMessage(i, COLOR_WHITE,"Pusteni ste iz zatvora."); SendClientMessage(i, COLOR_WHITE,"Sledeci put razmislite prije nego sto pocinite zlocin."); format(string, sizeof(string), "~g~Pusteni ste iz zatvora"); SetPlayerPos(i, 1767.88, -1613.29, 13.52); return 1; } } } return 1; }