warning 203: symbol is never used: "siren"
error 010: invalid function or declaration
Make sure this was added in:
pawn Код:
|
C:\Users\Geo\Desktop\Ca marche\a jour\gamemodes\usrp.pwn(464) : error 017: undefined symbol "COLOR_WHITE" C:\Users\Geo\Desktop\Ca marche\a jour\gamemodes\usrp.pwn(465) : error 017: undefined symbol "COLOR_GRAD2" C:\Users\Geo\Desktop\Ca marche\a jour\gamemodes\usrp.pwn(474) : error 017: undefined symbol "COLOR_GRAD2" C:\Users\Geo\Desktop\Ca marche\a jour\gamemodes\usrp.pwn(477) : warning 217: loose indentation C:\Users\Geo\Desktop\Ca marche\a jour\gamemodes\usrp.pwn(483) : error 017: undefined symbol "COLOR_PURPLE" C:\Users\Geo\Desktop\Ca marche\a jour\gamemodes\usrp.pwn(484) : warning 217: loose indentation C:\Users\Geo\Desktop\Ca marche\a jour\gamemodes\usrp.pwn(490) : error 017: undefined symbol "COLOR_GRAD2" C:\Users\Geo\Desktop\Ca marche\a jour\gamemodes\usrp.pwn(493) : warning 217: loose indentation C:\Users\Geo\Desktop\Ca marche\a jour\gamemodes\usrp.pwn(499) : error 017: undefined symbol "COLOR_PURPLE" C:\Users\Geo\Desktop\Ca marche\a jour\gamemodes\usrp.pwn(506) : error 017: undefined symbol "COLOR_GRAD2" C:\Users\Geo\Desktop\Ca marche\a jour\gamemodes\usrp.pwn(514) : error 017: undefined symbol "COLOR_PURPLE" C:\Users\Geo\Desktop\Ca marche\a jour\gamemodes\usrp.pwn(519) : error 017: undefined symbol "COLOR_WHITE" C:\Users\Geo\Desktop\Ca marche\a jour\gamemodes\usrp.pwn(520) : error 017: undefined symbol "COLOR_GRAD2" C:\Users\Geo\Desktop\Ca marche\a jour\gamemodes\usrp.pwn(524) : error 017: undefined symbol "COLOR_GREY"
CMD:siren(playerid, params[]) { if(IsACop(playerid)) { new string[128], type; new VID = GetPlayerVehicleID(playerid); if(sscanf(params, "d", type)) { SendClientMessage(playerid, COLOR_WHITE, "USAGE: /siren [type]"); SendClientMessage(playerid, COLOR_GRAD2, "Type: 1 = Inside, 2 = Roof, 3 = Off."); return 1; } switch(type) { case 1: { if(Siren[VID] == 1) { SendClientMessage(playerid, COLOR_GRAD2, "This vehicle already has a siren!"); return 1; } new sendername[MAX_PLAYER_NAME]; Siren[VID] = 1; GetPlayerName(playerid, sendername, sizeof(sendername)); SirenObject[VID] = CreateObject(18646, 10.0, 10.0, 10.0, 0, 0, 0); AttachObjectToVehicle(SirenObject[VID], VID, 0.0, 0.75, 0.275, 0.0, 0.1, 0.0); format(string, sizeof(string), "* %s puts the siren on the dashboard.", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); return 1; } case 2: { if(Siren[VID] == 1) { SendClientMessage(playerid, COLOR_GRAD2, "This vehicle already has a siren!"); return 1; } Siren[VID] = 1; new sendername[MAX_PLAYER_NAME]; GetPlayerName(playerid, sendername, sizeof(sendername)); SirenObject[VID] = CreateObject(18646, 10.0, 10.0, 10.0, 0, 0, 0); AttachObjectToVehicle(SirenObject[VID], VID, -0.43, 0.0, 0.785, 0.0, 0.1, 0.0); format(string, sizeof(string), "* %s puts the siren on the roof.", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); return 1; } case 3: { if(Siren[VID] == 0) { SendClientMessage(playerid, COLOR_GRAD2, "This vehicle doesn't have a siren on it!"); return 1; } Siren[VID] = 0; new sendername[MAX_PLAYER_NAME]; GetPlayerName(playerid, sendername, sizeof(sendername)); DestroyObject(SirenObject[VID]); format(string, sizeof(string), "* %s takes down the siren.", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); return 1; } default: { SendClientMessage(playerid, COLOR_WHITE, "Invalid license type! /siren [type]"); SendClientMessage(playerid, COLOR_GRAD2, "Type: 1 = Roof, 2 = Inside, 3 = Off."); } } } else SendClientMessage(playerid, COLOR_GREY, "You're not authorised to use this command."); return 1; }
#define COLOR_PURPLE 0xC2A2DAAA
C:\Users\Geo\Desktop\Ca marche\a jour\gamemodes\usrp.pwn(482) : warning 225: unreachable code C:\Users\Geo\Desktop\Ca marche\a jour\gamemodes\usrp.pwn(494) : warning 217: loose indentation C:\Users\Geo\Desktop\Ca marche\a jour\gamemodes\usrp.pwn(500) : warning 202: number of arguments does not match definition C:\Users\Geo\Desktop\Ca marche\a jour\gamemodes\usrp.pwn(501) : warning 217: loose indentation C:\Users\Geo\Desktop\Ca marche\a jour\gamemodes\usrp.pwn(510) : warning 217: loose indentation C:\Users\Geo\Desktop\Ca marche\a jour\gamemodes\usrp.pwn(516) : warning 202: number of arguments does not match definition C:\Users\Geo\Desktop\Ca marche\a jour\gamemodes\usrp.pwn(531) : warning 202: number of arguments does not match definition C:\Users\Geo\Desktop\Ca marche\a jour\gamemodes\usrp.pwn(537) : warning 225: unreachable code
LINE 473 CMD:siren(playerid, params[])
{
if(IsACop(playerid))
{
new string[128], type;
new VID = GetPlayerVehicleID(playerid);
if(sscanf(params, "d", type))
{
return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /siren [type]");
return SendClientMessage(playerid, COLOR_GRAD2, "Type: 1 = Inside, 2 = Roof, 3 = Off.");
}
switch(type)
{
case 1:
{
if(Siren[VID] == 1)
{
return SendClientMessage(playerid, COLOR_GRAD2, "This vehicle already has a siren!");
}
new sendername[MAX_PLAYER_NAME];
Siren[VID] = 1;
GetPlayerName(playerid, sendername, sizeof(sendername));
SirenObject[VID] = CreateObject(18646, 10.0, 10.0, 10.0, 0, 0, 0);
AttachObjectToVehicle(SirenObject[VID], VID, 0.0, 0.75, 0.275, 0.0, 0.1, 0.0);
format(string, sizeof(string), "* %s puts the siren on the dashboard.", sendername);
LINE 500 ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
return 1;
}
case 2:
{
if(Siren[VID] == 1)
{
return SendClientMessage(playerid, COLOR_GRAD2, "This vehicle already has a siren!");
}
Siren[VID] = 1;
new sendername[MAX_PLAYER_NAME];
GetPlayerName(playerid, sendername, sizeof(sendername));
SirenObject[VID] = CreateObject(18646, 10.0, 10.0, 10.0, 0, 0, 0);
AttachObjectToVehicle(SirenObject[VID], VID, -0.43, 0.0, 0.785, 0.0, 0.1, 0.0);
format(string, sizeof(string), "* %s puts the siren on the roof.", sendername);
LINE 516 ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
return 1;
}
case 3:
{
if(Siren[VID] == 0)
{
return SendClientMessage(playerid, COLOR_GRAD2, "This vehicle doesn't have a siren on it!");
}
Siren[VID] = 0;
new sendername[MAX_PLAYER_NAME];
GetPlayerName(playerid, sendername, sizeof(sendername));
DestroyObject(SirenObject[VID]);
format(string, sizeof(string), "* %s takes down the siren.", sendername);
LINE 531 ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
return 1;
}
default:
{
return SendClientMessage(playerid, COLOR_WHITE, "Invalid license type! /siren [type]");
return SendClientMessage(playerid, COLOR_GRAD2, "Type: 1 = Roof, 2 = Inside, 3 = Off.");
}
}
}
else return SendClientMessage(playerid, COLOR_GREY, "You're not authorised to use this command.");
return 1;
LINE 544 }