CMD:add(playerid, params[])
{
new string[64],
option[4],
Nos[4],
Hyrodolics[5],
Spolier[5],
SideSkirts[12],
Exaust[5];
sscanf(params, "s", option);
if (isnull(option))
{
SendClientMessage(playerid, COLOR_WHITE, " USAGE: /add [option]");
SendClientMessage(playerid, COLOR_WHITE, " OPTIONS: Nos, Hyrodolics, Spoiler, SideSkirt,Exaust");
return 1;
}
if (option(Nos))
{
SendClientMessage(playerid, 0x0000BBAA, "Hey");
}
if (option = Hyrodolics)
{
// Code for the drugs...
}
if (option = Spolier)
{
// Code for the money...
}
return 1;
}
if (!strcmp("Nos",option))
{
SendClientMessage(playerid, 0x0000BBAA, "Hey");
}
else if (!strcmp("Hyrodolics",option))
{
// Code for the drugs...
}
else if (!strcmp("Spolier",option))
{
// Code for the money...
}
CMD:add(playerid, params[])
{
new string[64],
option[4],
Nos[4],
Hydraulics[5],
Spolier[5],
SideSkirts[12],
Exaust[5];
sscanf(params, "s", option);
if (isnull(option)) {
SendClientMessage(playerid, COLOR_WHITE, " USAGE: /add [option]");
SendClientMessage(playerid, COLOR_WHITE, " OPTIONS: Nos, Hydraulics, Spoiler, SideSkirt,Exaust");
return 1;
}
if (strcmp("Nos",option)) {
if (IsPlayerInAnyVehicle(playerid))
{
SendClientMessage(playerid, 0x0000BBAA, "Nitro added");
AddVehicleComponent(vehicleid, 1010);
}
else
{
return 1;
}
}
else if (strcmp("Hydraulics",option)) {
if (IsPlayerInAnyVehicle(playerid))
{
SendClientMessage(playerid, 0x0000BBAA, "Hydraulics added");
AddVehicleComponent(vehicleid, 1087);
}
else
{
return 1;
}
}
else if (strcmp("Spolier",option)) {
if (IsPlayerInAnyVehicle(playerid))
{
SendClientMessage(playerid, 0x0000BBAA, "Spoiler added");
AddVehicleComponent(vehicleid, 1003);
}
else
{
return 1;
}
}
return 1;
}
Here:
pawn Код:
|
warning 204: symbol is assigned a value that is never used: "Exaust"
warning 204:symbol is assigned a value that is never used: "SideSkirts"
warning 204: symbol is assigned a value that is never used: "Spolier"
warning 204: symbol is assigned a value that is never used: "Hydraulics"
warning 204: symbol is assigned a value that is never used: "Nos"
warning 204: symbol is assigned a value that is never used: "string"
CMD:add(playerid, params[])
{
new option,
Nos,
Hydraulics,
Spolier,
SideSkirts,
Exaust;
sscanf(params, "s", option);
if (isnull(option)) {
SendClientMessage(playerid, COLOR_WHITE, " USAGE: /add [option]");
SendClientMessage(playerid, COLOR_WHITE, " OPTIONS: Nos, Hydraulics, Spoiler, SideSkirt,Exaust");
return 1;
}
if (strcmp("Nos",option)) {
if (IsPlayerInAnyVehicle(playerid))
{
SendClientMessage(playerid, 0x0000BBAA, "Nitro added");
AddVehicleComponent(vehicleid, 1010);
}
else
{
return 1;
}
}
else if (strcmp("Hydraulics",option)) {
if (IsPlayerInAnyVehicle(playerid))
{
SendClientMessage(playerid, 0x0000BBAA, "Hydraulics added");
AddVehicleComponent(vehicleid, 1087);
}
else
{
return 1;
}
}
else if (strcmp("Spolier",option)) {
if (IsPlayerInAnyVehicle(playerid))
{
SendClientMessage(playerid, 0x0000BBAA, "Spoiler added");
AddVehicleComponent(vehicleid, 1003);
}
else
{
return 1;
}
}
return 1;
}