Symbol is never used
#1

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.
Reply
#2

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..
Reply
#3

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".
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)