Script error. Need help!
#9

Script involved:
Код:
if(strcmp(cmd, "/payticket", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
	        if(PlayerToPoint(10.0, playerid,362.2424,173.6452,1008.3828) || PlayerToPoint(10.0, playerid,252.3490,117.3676,1003.2188))
	        {
	        	if(PlayerInfo[playerid][pTicket][0] > 0)
		    	{
					if(GetPlayerPCash(playerid) >= PlayerInfo[playerid][pTicket][0])
					{
		            	(Line 9769) format(string, sizeof(string), "You have paid a ticket that costed: $%d", PlayerInfo[playerid][pTicket][0]);
		            	SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
		            	GivePlayerPCash(playerid,-PlayerInfo[playerid][pTicket][0]);
		            	PlayerInfo[playerid][pTicket][0] = 0;
		        	}
		        	else
		        	{
		            	SendClientMessage(playerid, COLOR_GREY, "You cannot afford the tickets price !");
				    	return 1;
		        	}
		    	}
		    	else if(PlayerInfo[playerid][pTicket][1] > 0)
		    	{
					if(GetPlayerPCash(playerid) >= PlayerInfo[playerid][pTicket][1])
					{
		            	format(string, sizeof(string), "You have paid a ticket that costed: $%d", PlayerInfo[playerid][pTicket][1]);
		            	SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
		            	GivePlayerPCash(playerid,-PlayerInfo[playerid][pTicket][1]);
		            	PlayerInfo[playerid][pTicket][1] = 0;
		        	}
		        	else
		        	{
		            	SendClientMessage(playerid, COLOR_GREY, "You cannot afford the tickets price !");
				    	return 1;
		        	}
		    	}
		    	else if(PlayerInfo[playerid][pTicket][2] > 0)
		    	{
					if(GetPlayerPCash(playerid) >= PlayerInfo[playerid][pTicket][2])
					{
		            	format(string, sizeof(string), "You have paid a ticket that costed: $%d", PlayerInfo[playerid][pTicket][2]);
		            	SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
		            	GivePlayerPCash(playerid,-PlayerInfo[playerid][pTicket][2]);
		            	PlayerInfo[playerid][pTicket][2] = 0;
		        	}
		        	else
		        	{
		            	SendClientMessage(playerid, COLOR_GREY, "You cannot afford the tickets price !");
				    	return 1;
		        	}
		    	}
		    	else if(PlayerInfo[playerid][pTicket][3] > 0)
		    	{
					if(GetPlayerPCash(playerid) >= PlayerInfo[playerid][pTicket][3])
					{
		            	format(string, sizeof(string), "You have paid a ticket that costed: $%d", PlayerInfo[playerid][pTicket][3]);
		            	SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
		            	GivePlayerPCash(playerid,-PlayerInfo[playerid][pTicket][3]);
		           	 	PlayerInfo[playerid][pTicket][3] = 0;
		        	}
		        	else
		        	{
		            	SendClientMessage(playerid, COLOR_GREY, "You cannot afford the tickets price !");
				    	return 1;
		        	}
		    	}
		    	else if(PlayerInfo[playerid][pTicket][4] > 0)
		   	 	{
					if(GetPlayerPCash(playerid) >= PlayerInfo[playerid][pTicket][4])
					{
		            	format(string, sizeof(string), "You have paid a ticket that costed: $%d", PlayerInfo[playerid][pTicket][4]);
		            	SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
		            	GivePlayerPCash(playerid,-PlayerInfo[playerid][pTicket][4]);
		            	PlayerInfo[playerid][pTicket][4] = 0;
		        	}
		        	else
		        	{
		            	SendClientMessage(playerid, COLOR_GREY, "You cannot afford the tickets price !");
				   	 	return 1;
		        	}
		    	}
		    	else
		    	{
		        	SendClientMessage(playerid, COLOR_GREY, "You dont have any unpaid tickets !");
					return 1;
		    	}
		    }
		    else
		    {
		        SendClientMessage(playerid, COLOR_GREY, "Your not at the City Hall front desk or Police Station front counter.");
				return 1;
	        }
	    }
	    return 1;
	}
Errors:
s.TMP(9769): error 017: undefined symbol "string"
s.TMP(9769): error 017: undefined symbol "string"
s.TMP(9769): error 029: invalid expression, assumed zero
s.TMP(9769): Fatal error 107: too many error messages on one line
Reply


Messages In This Thread
Script error. Need help! - by PhoeNiX778 - 10.07.2012, 13:08
Re: Script error. Need help! - by Avi57 - 10.07.2012, 13:15
Re: Script error. Need help! - by Torus - 10.07.2012, 13:16
Re: Script error. Need help! - by PhoeNiX778 - 10.07.2012, 13:25
Re: Script error. Need help! - by Torus - 10.07.2012, 13:29
Re: Script error. Need help! - by clarencecuzz - 10.07.2012, 13:35
Re: Script error. Need help! - by PhoeNiX778 - 10.07.2012, 13:44
Re: Script error. Need help! - by clarencecuzz - 10.07.2012, 13:47
Re: Script error. Need help! - by PhoeNiX778 - 10.07.2012, 13:54
Re: Script error. Need help! - by Avi57 - 10.07.2012, 14:40

Forum Jump:


Users browsing this thread: 2 Guest(s)