28.11.2015, 17:26
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");
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");