car lights
#1

everytime i get in a car the light come on.


i think i delete it,gave me errors i try to fixing.
Код:
1159) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Warning.
Код:
// This callback gets called whenever a player enters a vehicle
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
	// Setup local variables
	new engine,  alarm, doors, bonnet, boot, objective;

	// Check if the vehicle has fuel
	if (AVehicleData[vehicleid][Fuel] > 0)
	{
		// Start the engine and turn on the lights
		GetVehicleParamsEx(vehicleid, engine, alarm, doors, bonnet, boot, objective);
		SetVehicleParamsEx(vehicleid, 1, 1, alarm, doors, bonnet, boot, objective);
	}

	// Store the player's current location and interior-id, otherwise anti-airbreak hack code could kick you
	GetPlayerPos(playerid, APlayerData[playerid][PreviousX], APlayerData[playerid][PreviousY], APlayerData[playerid][PreviousZ]);
	APlayerData[playerid][PreviousInt] = GetPlayerInterior(playerid);

	return 1;
}
Reply


Messages In This Thread
car lights - by DerickClark - 30.03.2013, 16:25
Re: car lights - by BrandyPenguin - 30.03.2013, 16:32
Re: car lights - by DerickClark - 30.03.2013, 16:35
Re: car lights - by MrTinder - 30.03.2013, 16:36
Re: car lights - by DerickClark - 30.03.2013, 16:38
Re: car lights - by MrTinder - 30.03.2013, 16:48
Re: car lights - by DerickClark - 30.03.2013, 16:57
Re: car lights - by Peach - 30.03.2013, 17:00

Forum Jump:


Users browsing this thread: 5 Guest(s)