04.08.2015, 14:05
Here is the warnings
Here is one of the script lines.
Код:
C:\Users\Canip\Desktop\GRP\gamemodes\lsrpedit.pwn(25060) : warning 204: symbol is assigned a value that is never used: "faction" C:\Users\Canip\Desktop\GRP\gamemodes\lsrpedit.pwn(25208) : warning 204: symbol is assigned a value that is never used: "faction" C:\Users\Canip\Desktop\GRP\gamemodes\lsrpedit.pwn(25361) : warning 204: symbol is assigned a value that is never used: "faction"
Код:
else if(PlayerInCar(playerid))
{
new vehicle = GetPlayerVehicleID(playerid);
if(IsACopCar(vehicle))
{
if(!CheckWeapon(playerid, weaponid)) return SCM(playerid, COLOR_LIGHTRED, "You don't have this weapon.");
if(weaponid == 3 || weaponid == 24 || weaponid == 41) return SCM(playerid, COLOR_LIGHTRED, "You may not place this weapon.");
new faction = PlayerInfo[playerid][pFaction];
if(PlayerInfo[playerid][pFaction] != 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), "stores a %s in the Cruiser's trunk.", GetWeaponNameEx(weaponid));
ActionMessage(playerid, 15.0, msg);
RemovePlayerWeapon(playerid, weaponid);
}

