Serious JAIL Bug!
#9

Quote:
Originally Posted by ShawnMiller1337
View Post
Code:
	if(strcmp(cmd, "/time", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
		{
		    new mtext[20];
			if(month == 1) { mtext = "January"; }
			else if(month == 2) { mtext = "February"; }
			else if(month == 3) { mtext = "March"; }
			else if(month == 4) { mtext = "April"; }
			else if(month == 5) { mtext = "May"; }
			else if(month == 6) { mtext = "June"; }
			else if(month == 7) { mtext = "July"; }
			else if(month == 8) { mtext = "August"; }
			else if(month == 9) { mtext = "September"; }
			else if(month == 10) { mtext = "October"; }
			else if(month == 11) { mtext = "November"; }
			else if(month == 12) { mtext = "December"; }
		    new hour,minuite,second;
			gettime(hour,minuite,second);
			if (minuite < 10)
			{
				if (PlayerInfo[playerid][pJailTime] > 0)
				{
					format(string, sizeof(string), "~y~%d %s~n~~g~|~w~%d:0%d~g~|~n~~w~Jail Time Left: %d sec", day, mtext, hour, minuite, PlayerInfo[playerid][pJailTime]-10);
				}
				else
				{
					format(string, sizeof(string), "~y~%d %s~n~~g~|~w~%d:0%d~g~|", day, mtext, hour, minuite);
				}
			}
			else
			{
				if (PlayerInfo[playerid][pJailTime] > 0)
				{
					format(string, sizeof(string), "~y~%d %s~n~~g~|~w~%d:%d~g~|~n~~w~Jail Time Left: %d sec", day, mtext, hour, minuite, PlayerInfo[playerid][pJailTime]-10);
				}
				else
				{
					format(string, sizeof(string), "~y~%d %s~n~~g~|~w~%d:%d~g~|", day, mtext, hour, minuite);
				}
			}
			GameTextForPlayer(playerid, string, 5000, 1);
		}
		return 1;
	}
That is my /time code
also I check his code , Looks the same just a differant format..

Still same error occurs.... Officer sends the suspect to prison for 1 min... suspect does /time right when he gets in prison it says " Jail Time Left : 50 seconds " And it stays like that.. I have no idea what is causing this problem... , But if the suspect relogs while in jail , once it says "Incomplete Jail Sentenced , Returned to jail " The timer starts working and the time goes down until the suspect is free from jail
It means that good... what's the problem? when you arressting the susepct and he does /time, it should show how much time he has until he gets out... and if he log off and log in back it says "Incomplete..." then he can see his time... that's how it needs to be, i don't know other way..
Reply


Messages In This Thread
Serious JAIL Bug! - by ShawnMiller1337 - 08.12.2010, 04:02
Re: Serious JAIL Bug! - by Toreno - 08.12.2010, 04:20
Re: Serious JAIL Bug! - by NotoriousMOB - 08.12.2010, 04:24
Re: Serious JAIL Bug! - by ShawnMiller1337 - 08.12.2010, 04:42
Re: Serious JAIL Bug! - by Mehtab - 08.12.2010, 04:49
Re: Serious JAIL Bug! - by Toreno - 08.12.2010, 05:10
Re: Serious JAIL Bug! - by ShawnMiller1337 - 08.12.2010, 05:14
Re: Serious JAIL Bug! - by Voldemort - 08.12.2010, 08:06
Re: Serious JAIL Bug! - by Toreno - 08.12.2010, 08:59
Re: Serious JAIL Bug! - by ShawnMiller1337 - 08.12.2010, 17:19
Re: Serious JAIL Bug! - by NotoriousMOB - 08.12.2010, 23:27
Re: Serious JAIL Bug! - by john501 - 10.12.2010, 14:58
Re: Serious JAIL Bug! - by ShawnMiller1337 - 06.04.2011, 00:34

Forum Jump:


Users browsing this thread: 1 Guest(s)