[Warning] Wild Warning Appears.
#1

Whats up guys, i have encountered this warning which i am not sure what is the problem causing it:

Warning:
Code:
warning 203: symbol is never used:"gunhelp"
Pawn Code:
pawn Code:
COMAMND:gunhelp(playerid)
{
    SendClientMessage(playerid, WHITE, "Here are the ID's of all the needed weapons:");
    SendClientMessage(playerid, WHITE, "| Colt 22 | S-Colt 23 | D.Eagle 24 | Shotgun 25 | Sawn-Shotgun 26 |");
    SendClientMessage(playerid, WHITE, "| Combt-Shotgun 27 | M.Uzi 28 | MP5 29 | AK47 30 | M4 31 | Tec9 32 |");
    SendClientMessage(playerid, WHITE, "| County-Rifle 33 | Sniper Rifle 34 | RPG 35 | HS-Rocket 36 | Flame.Th 37 |");
    SendClientMessage(playerid, WHITE, "| Minigun 38 | S.Charges 39 | Spraycan 41 | Fire.Ext 42 | ");
    SendClientMessage(playerid, WHITE, "| ******S : Night.Vis 44 | Thermal.Gog 45 |");
    return 1;
}
Thanks for the people that help me to solve it.
Reply
#2

Pawn compiler gives you a line thats on. Show us the line the warning comes from.
Reply
#3

Just look for
Code:
new gunhelp;
and remove this line and warning will be fixed
Reply
#4

nvmm
Reply
#5

You wrote "COMAMND" instead of COMMAND.

#include <zcmd> at top.

Change "COMAMND" with "CMD".

This will work:
pawn Code:
CMD:gunhelp(playerid, params[])
{
    SendClientMessage(playerid, WHITE, "Here are the ID's of all the needed weapons:");
    SendClientMessage(playerid, WHITE, "| Colt 22 | S-Colt 23 | D.Eagle 24 | Shotgun 25 | Sawn-Shotgun 26 |");
    SendClientMessage(playerid, WHITE, "| Combt-Shotgun 27 | M.Uzi 28 | MP5 29 | AK47 30 | M4 31 | Tec9 32 |");
    SendClientMessage(playerid, WHITE, "| County-Rifle 33 | Sniper Rifle 34 | RPG 35 | HS-Rocket 36 | Flame.Th 37 |");
    SendClientMessage(playerid, WHITE, "| Minigun 38 | S.Charges 39 | Spraycan 41 | Fire.Ext 42 | ");
    SendClientMessage(playerid, WHITE, "| ******S : Night.Vis 44 | Thermal.Gog 45 |");
    return 1;
}
Reply
#6

Quote:
Originally Posted by Mionee
View Post
You wrote "COMAMND" instead of COMMAND.

#include <zcmd> at top.

Change "COMAMND" with "CMD".

This will work:
pawn Code:
CMD:gunhelp(playerid, params[])
{
    SendClientMessage(playerid, WHITE, "Here are the ID's of all the needed weapons:");
    SendClientMessage(playerid, WHITE, "| Colt 22 | S-Colt 23 | D.Eagle 24 | Shotgun 25 | Sawn-Shotgun 26 |");
    SendClientMessage(playerid, WHITE, "| Combt-Shotgun 27 | M.Uzi 28 | MP5 29 | AK47 30 | M4 31 | Tec9 32 |");
    SendClientMessage(playerid, WHITE, "| County-Rifle 33 | Sniper Rifle 34 | RPG 35 | HS-Rocket 36 | Flame.Th 37 |");
    SendClientMessage(playerid, WHITE, "| Minigun 38 | S.Charges 39 | Spraycan 41 | Fire.Ext 42 | ");
    SendClientMessage(playerid, WHITE, "| ******S : Night.Vis 44 | Thermal.Gog 45 |");
    return 1;
}
Oh my god , thanks!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)