C:\Users\Canip\Desktop\GRP\gamemodes\lsrpedit.pwn(25226) : error 036: empty statement C:\Users\Canip\Desktop\GRP\gamemodes\lsrpedit.pwn(35780) : warning 203: symbol is never used: "PoliceTrunk2" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
} else if(PlayerInCar(playerid)) { new vehicle = GetPlayerVehicleID(playerid);//From here if(IsACopCar(vehicle)); if(IsACopCarSD(vehicle))//To here { if(slotid >= sizeof(PoliceTrunk)) return SCM(playerid, COLOR_GREY, "Invalid slot."); new faction = PlayerInfo[playerid][pFaction]; if(faction != LSPD && SASD) return SCM(playerid, COLOR_LIGHTRED, "Invalid faction."); if(!CopDuty{playerid}) return SCM(playerid, COLOR_LIGHTRED, "You must be on duty."); format(msg, sizeof(msg), "grabs a %s from the Cruiser's trunk.", GetWeaponNameEx(PoliceTrunk[slotid][wepID])); ActionMessage(playerid, 15.0, msg); GiveWeapon(playerid, PoliceTrunk[slotid][wepID], PoliceTrunk[slotid][wepAmmo]); }
else if(PlayerInCar(playerid))
{
new vehicle = GetPlayerVehicleID(playerid);
if(IsACopCar(vehicle) && IsACopCarSD(vehicleid))
{
if(slotid >= sizeof(PoliceTrunk)) return SCM(playerid, COLOR_GREY, "Invalid slot.");
new faction = PlayerInfo[playerid][pFaction];
if(faction != LSPD && SASD) return SCM(playerid, COLOR_LIGHTRED, "Invalid faction.");
if(!CopDuty{playerid}) return SCM(playerid, COLOR_LIGHTRED, "You must be on duty.");
format(msg, sizeof(msg), "grabs a %s from the Cruiser's trunk.", GetWeaponNameEx(PoliceTrunk[slotid][wepID]));
ActionMessage(playerid, 15.0, msg);
GiveWeapon(playerid, PoliceTrunk[slotid][wepID], PoliceTrunk[slotid][wepAmmo]);
}
}
else if(PlayerInCar(playerid)) { new vehicle; vehicle = GetPlayerVehicleID(playerid); if(IsACopCar(vehicle)) if(IsACopCarSD(vehicle) { if(slotid >= sizeof(PoliceTrunk)) return SCM(playerid, COLOR_GREY, "Invalid slot."); new faction = PlayerInfo[playerid][pFaction]; if(faction != LSPD && SASD) return SCM(playerid, COLOR_LIGHTRED, "Invalid faction."); if(!CopDuty{playerid}) return SCM(playerid, COLOR_LIGHTRED, "You must be on duty."); format(msg, sizeof(msg), "grabs a %s from the Cruiser's trunk.", GetWeaponNameEx(PoliceTrunk[slotid][wepID])); ActionMessage(playerid, 15.0, msg); GiveWeapon(playerid, PoliceTrunk[slotid][wepID], PoliceTrunk[slotid][wepAmmo]); }
Do you mean it like this?
PHP код:
|