14.06.2017, 23:05
So I have a timer placed under on gamemodeinit and it is not repeating
It is supposed to call this function
However its not calling it plus its giving me a warning
Code:
public OnGameModeInit() { SetTimer("checkAJail", 1000, true); }
Code:
checkAJail() { foreach(Player, i) { if(GetPVarType(i, "AJailReleaseTime") != PLAYER_VARTYPE_NONE) { new rtime = GetPVarInt(i, "AJailReleaseTime"); if(gettime() > rtime) { ReleaseAjail(i); DeletePVar(i, "AJailReleaseTime"); } } } }
Code:
LSR.pwn 16928 203 symbol is never used: "checkAJail"