08.07.2016, 07:40
Because, you used [pJailed] to hold the jail time. Look at your code again, first you are setting it's value to 1 then again setting the jail's time in it.
Plus, you do not really need to set it's value to either 0 or 1 to indicate that the player is jailed. Just simply check with a logic: If the time value that it holds is higher than 0, player is still in jail. If the value is 0 then the player is not jailed. Simple.
I would recommend you to use gettime() instead of timer if you are not showing the estimated jail time in a textdraw/gametext.
Plus, you do not really need to set it's value to either 0 or 1 to indicate that the player is jailed. Just simply check with a logic: If the time value that it holds is higher than 0, player is still in jail. If the value is 0 then the player is not jailed. Simple.
I would recommend you to use gettime() instead of timer if you are not showing the estimated jail time in a textdraw/gametext.