SA-MP Forums Archive
[Warning] Wild Warning Appears. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [Warning] Wild Warning Appears. (/showthread.php?tid=489256)



[Warning] Wild Warning Appears. - $Marco$ - 21.01.2014

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.


Re: [Warning] Wild Warning Appears. - thimo - 21.01.2014

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


Re: [Warning] Wild Warning Appears. - [TMS]Legena - 21.01.2014

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


Re: [Warning] Wild Warning Appears. - denmark - 21.01.2014

nvmm


Re: [Warning] Wild Warning Appears. - Dignity - 21.01.2014

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;
}



Re: [Warning] Wild Warning Appears. - $Marco$ - 21.01.2014

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!