Error help
#5

Thanks, what about this command,

Error:
Код:
 (9204 -- 9223) : error 010: invalid function or declaration
Command:
Код:
CMD:getin(playerid, params[])
{
    new IsPlayerInEVehicle[MAX_PLAYERS];
    new Seats[MAX_VEHICLES];
   	if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
			for(new i=0; i < 1750; i++)
			{
			    new Float:X,Float:Y,Float:Z;
			    GetVehiclePos(i, X,Y,Z);
			    new vehiclename[24]; //here
   	if(!IsPlayerInRangeOfPoint(playerid, 7.0, X,Y,Z)) return SendClientMessage(playerid, COLOR_GREY, "You are not at the cityhall.");
   	if(IsAnEnterableModel(i))
   	if(IsPlayerInEVehicle[playerid] == 9999 && !IsPlayerInAnyVehicle(playerid))
   	if(IsAnEnterableCar(i) && Seats[i] <= 5)
   	{
   	PutPlayerInVehicle(playerid, i, 4);
   	Seats[i] ++;
   	SendClientMessage(playerid, COLOR_GREY,"* You have Entered a Vehicle with /getin, Use /getout to get out or else YOU WILL CRASH!!");
   	return 1;
   	}
   	else if(IsAnEnterablePlane(i))
   	{
   	PutPlayerInVehicle(playerid, i, 4);
   	IsPlayerInEVehicle[playerid] = i;
   	SendClientMessage(playerid, COLOR_GREY,"* You have Entered a Vehicle with /getin, Use /getout to get out or else YOU WILL CRASH!!");
		  }
		 }
		}
		return 1; //to here
	}
Reply


Messages In This Thread
Error help - by Rabea - 17.08.2014, 12:49
Re: Error help - by iOxide - 17.08.2014, 12:54
Re: Error help - by Rabea - 17.08.2014, 12:58
Re: Error help - by Stinged - 17.08.2014, 13:01
Re: Error help - by Rabea - 17.08.2014, 14:29
Re: Error help - by Rabea - 17.08.2014, 15:32
Re: Error help - by Rabea - 18.08.2014, 09:06

Forum Jump:


Users browsing this thread: 1 Guest(s)