30.03.2013, 16:25
everytime i get in a car the light come on.
i think i delete it,gave me errors i try to fixing.
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; }