1
mIRC/pawn Scripting / Re: Custom skins in Server.
« on: August 14, 2014, 08:32:25 pm »
Thnx for your replay.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Change ); to }
Here is the full code of OnPlayerExitVehiclepublic 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.
and fixed
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;
}
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;
}