Symbol is never used - 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: Symbol is never used (
/showthread.php?tid=401869)
Symbol is never used -
NicholasA - 24.12.2012
what am i doing wrong
pawn Код:
COMMAND: dealmeth(playerid, params[])
{
if(!IsPlayerInRangeOfPoint(playerid, 30.0,2451.0056,-2118.1301,13.5469))return SendClientMessage(playerid, 0xE0313AFF, "(( You are not at the meth dealing point! ))");
SendClientMessage(playerid, 0x3524C9FF, "(( You have bought some grams of meth! ))");
SendClientMessage(playerid, 0x3524C9FF, "(( Deliver the meth to the buyers! ))");
SetPlayerCheckpoint(playerid, 1277.2992,316.4227,26.05556, 5.0);
return 1;
}
Код:
C:\Users\x3990.003\Desktop\melfoef\samp server\filterscripts\dealers.pwn(233) : warning 203: symbol is never used: "dealmeth"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Warning.
Re: Symbol is never used -
Mike_Peterson - 24.12.2012
remove the space between command: and dealmeth, although I have no clue whether that should fix it..
Though I have no experience with zcmd, I do know that with dcmd you have to define it under onplayercommandtext, but that's probably not with zcmd anyway..
Re: Symbol is never used -
SKAzini - 24.12.2012
As Mike said:
pawn Код:
COMMAND:dealmeth(playerid, params[])
{
if(!IsPlayerInRangeOfPoint(playerid, 30.0,2451.0056,-2118.1301,13.5469))return SendClientMessage(playerid, 0xE0313AFF, "(( You are not at the meth dealing point! ))");
SendClientMessage(playerid, 0x3524C9FF, "(( You have bought some grams of meth! ))");
SendClientMessage(playerid, 0x3524C9FF, "(( Deliver the meth to the buyers! ))");
SetPlayerCheckpoint(playerid, 1277.2992,316.4227,26.05556, 5.0);
return 1;
}
However, when I copied your command I had 4 errors instead of this warning. When I removed the space it compiled succesfully which leads me to thinking that you have a variable named "dealmeth".