Error
#1

Код HTML:
F:\CNR - RP\gamemodes\arcnr2p.pwn(10009) : error 033: array must be indexed (variable "pname")
F:\CNR - RP\gamemodes\arcnr2p.pwn(10040) : error 047: array sizes do not match, or destination array is too small
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Код HTML:
	if(newstate == PLAYER_STATE_DRIVER)
	{
		new pveh =GetPlayerVehicleID(playerid);
		if(VehicleInfo[pveh][bought] == pname && VehicleInfo[pveh][bought] <= MAX_PLAYERS_) [COLOR="Red"]this line 1009[/COLOR]
		{
		    if(playerid == VehicleInfo[pveh][bought])
		    {
		        SendClientMessage(playerid,COLOR_LIME,"Welcome to your bought vehicle from Otto's Cars.");
		        return 1;
			}
			if(playerid != VehicleInfo[pveh][bought] && gTeam[playerid] != TEAM_CARJACK)
			{
			    format(string,sizeof(string),"This vehicle is owned by %s(%d). You cannot drive it as you don't own it.",PlayerName(VehicleInfo[pveh][bought]),VehicleInfo[pveh][bought]);
			    SendClientMessage(playerid,COLOR_ERROR,string);
			    RemovePlayerFromVehicle(playerid);
			    return 1;
			}
			if(playerid != VehicleInfo[pveh][bought] && gTeam[playerid] == TEAM_CARJACK)
			{
			    SendClientMessage(playerid,COLOR_DEADCONNECT,"[[_Vehicle Stolen_]]");
			    format(string,sizeof(string),"You have stolen %s(%d)'s purchased vehicle from Otto's Cars!",PlayerName(VehicleInfo[pveh][bought]),VehicleInfo[pveh][bought]);
			    SendClientMessage(playerid,COLOR_ERROR,string);
			    IncreaseWantedLevel(playerid,6);
			    IncreasePlayerScore(playerid,2);

				format(string,sizeof(string),"Car Jacker %s(%d) has stolen your purchased vehicle from Otto's Cars!",PlayerName(playerid),playerid);
				SendClientMessage(VehicleInfo[pveh][bought],COLOR_RED,string);
				
				format(string,sizeof(string),"[VEHICLE THEFT] Car Jacker %s(%d) has stolen %s(%d)'s purchased vehicle from Otto's Cars!",PlayerName(playerid),playerid,PlayerName(VehicleInfo[pveh][bought]),VehicleInfo[pveh][bought]);
				SendClientMessageToAll(COLOR_RED,string);
				
				format(string,sizeof(string),"[POLICE RADIO] Theft: Car Jacker %s(%d) has stolen %s(%d)'s purchased vehicle from Otto's Cars!",PlayerName(playerid),playerid,PlayerName(VehicleInfo[pveh][bought]),VehicleInfo[pveh][bought]);
			    SendClientMessageToAllCops(string);
			    
			    VehicleInfo[pveh][bought] = pname; [COLOR="red"]this line 10040[/COLOR]
			    VehicleInfo[pveh][stolen] =1;
Reply


Messages In This Thread
Error - by ridhoswasta - 22.06.2014, 16:40
Re: Error - by Clad - 22.06.2014, 16:42
Re: Error - by ridhoswasta - 22.06.2014, 16:45
Re : Error - by Chipardeur - 22.06.2014, 16:46
Re: Error - by ridhoswasta - 22.06.2014, 16:48
Re: Error - by Clad - 22.06.2014, 16:51
Re: Error - by ridhoswasta - 22.06.2014, 16:55
Re: Error - by RenovanZ - 22.06.2014, 16:57
Re: Error - by ridhoswasta - 22.06.2014, 17:01
Re: Error - by Clad - 22.06.2014, 17:42

Forum Jump:


Users browsing this thread: 1 Guest(s)