problem with jail timer
#4

SetPVarInt(i, "Jail", GetPVarInt(i, "Jail")-1);
GetPVarInt returns 0 if there is no such variable, therefore first time you set it, it sets Jail to -1, and -1 is not ==1
Simply when jailing do this SetPVarInt(i, "Jail", 1);
when taking him out of jail
DeletePVar(i, "jail");
Reply


Messages In This Thread
problem with jail timer - by Ernests - 28.11.2015, 16:10
Re: problem with jail timer - by ATGOggy - 28.11.2015, 16:52
Re: problem with jail timer - by Ernests - 28.11.2015, 17:13
Re: problem with jail timer - by PrO.GameR - 28.11.2015, 17:26

Forum Jump:


Users browsing this thread: 2 Guest(s)