07.06.2009, 15:06
Hello guys,
This is my /cuff command:
But if I compile it some errors pops up:
Does anyone has a idea of what I'm doing wrong?
This is my /cuff command:
pawn Код:
if(!strcmp(cmd,"/cuff",true))
{
cmd=strtok(cmdtext,idx);
if(!strlen(cmd)) return SendClientMessage(playerid,COLOR_GREY,"USAGE: /cuff playerid");
id=ReturnUser(cmd);
if(!IsPlayerConnected(layerid)) return SendClientMessage(playerid,COLOR_GREY,"Invalid player id.");
TogglePlayerControllable(layerid,0);
GameTextForPlayer(playerid, "~y~ hand cuffs!",2500,3);
return true;
}
But if I compile it some errors pops up:
Quote:
C:\Documents and Settings\Joeri\Bureaublad\samp server\gamemodes\penls.pwn(9256) : error 017: undefined symbol "id" C:\Documents and Settings\Joeri\Bureaublad\samp server\gamemodes\penls.pwn(9256) : error 017: undefined symbol "ReturnUser" C:\Documents and Settings\Joeri\Bureaublad\samp server\gamemodes\penls.pwn(9257) : error 017: undefined symbol "layerid" C:\Documents and Settings\Joeri\Bureaublad\samp server\gamemodes\penls.pwn(925 : error 017: undefined symbol "layerid" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. |