What's wrong with my script?
#8

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.
Reply


Messages In This Thread
What's wrong with my script? - by Zeus666 - 07.07.2016, 19:08
Re: What's wrong with my script? - by Vince - 07.07.2016, 19:21
Re: What's wrong with my script? - by Alpay0098 - 07.07.2016, 19:27
Re: What's wrong with my script? - by Stinged - 07.07.2016, 20:14
Re: What's wrong with my script? - by Shveps - 07.07.2016, 21:59
Re: What's wrong with my script? - by Sjn - 08.07.2016, 06:28
Re: What's wrong with my script? - by Zeus666 - 08.07.2016, 07:22
Re: What's wrong with my script? - by Sjn - 08.07.2016, 07:40
Re: What's wrong with my script? - by Stinged - 08.07.2016, 09:36
Re: What's wrong with my script? - by Zeus666 - 08.07.2016, 09:42

Forum Jump:


Users browsing this thread: 1 Guest(s)