0 Members and 1 Guest are viewing this topic.
hello guyz!i hope that you all will be fine!well i need some help in scripting.hope you people can help me.here are some errors highlighted.In these lines.Plz help me.
i cant able to understand
public OnPlayerExitVehicle(playerid,vehicleid){ RemovePlayerMarker(playerid); /*if(PlayerInfo[playerid][Status] == 0) { CheckIfZombieEnteredInVehicle[playerid] = 0; }*/ if(vehicleid > 142) { if(R[playerid] == 1) { R[playerid] = 0; } else { if(EngineON[vehicleid] == 0) { IsInVehicle[playerid][vehicleid] = 0; GameTextForPlayerBottom(playerid," "); SetVehicleLights(vehicleid,0); vh[playerid][vehicleid] = 0; NotDamager[playerid] = 0; SetVehicleAlarm(vehicleid,0); } if(EngineON[vehicleid] == 1) { IsInVehicle[playerid][vehicleid] = 0; GameTextForPlayerBottom(playerid," "); IsEngineOnOutOfPlayer[vehicleid] = 1; SetVehicleLights(vehicleid,0); vh[playerid][vehicleid] = 0; NotDamager[playerid] = 0; SetVehicleAlarm(vehicleid,0); ); return 1; }
);
)
)return 1;
Here is the full code of OnPlayerExitVehicleQuote from: NE.Restricted on August 11, 2014, 07:02:00 pmpublic OnPlayerExitVehicle(playerid,vehicleid){ RemovePlayerMarker(playerid); /*if(PlayerInfo[playerid][Status] == 0) { CheckIfZombieEnteredInVehicle[playerid] = 0; }*/ if(vehicleid > 142) { if(R[playerid] == 1) { R[playerid] = 0; } else { if(EngineON[vehicleid] == 0) { IsInVehicle[playerid][vehicleid] = 0; GameTextForPlayerBottom(playerid," "); SetVehicleLights(vehicleid,0); vh[playerid][vehicleid] = 0; NotDamager[playerid] = 0; SetVehicleAlarm(vehicleid,0); } if(EngineON[vehicleid] == 1) { IsInVehicle[playerid][vehicleid] = 0; GameTextForPlayerBottom(playerid," "); IsEngineOnOutOfPlayer[vehicleid] = 1; SetVehicleLights(vehicleid,0); vh[playerid][vehicleid] = 0; NotDamager[playerid] = 0; SetVehicleAlarm(vehicleid,0); ); return 1; }Error is in last bold red lines.
Quote from: Some_one on August 11, 2014, 08:23:14 pmHere is the full code of OnPlayerExitVehicleQuote from: NE.Restricted on August 11, 2014, 07:02:00 pmpublic OnPlayerExitVehicle(playerid,vehicleid){ RemovePlayerMarker(playerid); /*if(PlayerInfo[playerid][Status] == 0) { CheckIfZombieEnteredInVehicle[playerid] = 0; }*/ if(vehicleid > 142) { if(R[playerid] == 1) { R[playerid] = 0; } else { if(EngineON[vehicleid] == 0) { IsInVehicle[playerid][vehicleid] = 0; GameTextForPlayerBottom(playerid," "); SetVehicleLights(vehicleid,0); vh[playerid][vehicleid] = 0; NotDamager[playerid] = 0; SetVehicleAlarm(vehicleid,0); } if(EngineON[vehicleid] == 1) { IsInVehicle[playerid][vehicleid] = 0; GameTextForPlayerBottom(playerid," "); IsEngineOnOutOfPlayer[vehicleid] = 1; SetVehicleLights(vehicleid,0); vh[playerid][vehicleid] = 0; NotDamager[playerid] = 0; SetVehicleAlarm(vehicleid,0); ); return 1; }Error is in last bold red lines.Change ); to }and fixed
how to make .amx plzz tell lucifer