Help With CMD
#1

Um idk whats wrong with this cmd
error 017: undefined symbol "ReturnUser"
error 017: undefined symbol "ReturnUser"

these 2 errors help me out please

pawn Код:
if(!strcmp(cmdtext,"/cuff",true))
  {
   if(gTeam[playerid] == COP || gTeam[playerid] == SWAT || gTeam[playerid] == ARMY || gTeam[playerid] == FBI)

   {
    tmp=strtok(cmdtext,idx);
    if(!strlen(tmp)) return SendClientMessage(playerid,COLOR_GREY,"USAGE: /cuff playerid");
    giveplayerid = ReturnUser(tmp);
    if(!IsPlayerConnected(giveplayerid)) return SendClientMessage(playerid,COLOR_GREY,"Invalid player id.");
    TogglePlayerControllable(giveplayerid,0);
    GameTextForPlayer(giveplayerid, "~y~ You have been Cuffed!",2500,3);
   }
   return 1;
  }
 
  if(!strcmp(cmdtext,"/uncuff",true))
  {
   if(gTeam[playerid] == COP || gTeam[playerid] == SWAT || gTeam[playerid] == ARMY || gTeam[playerid] == FBI)
   {
    tmp=strtok(cmdtext,idx);
    if(!strlen(tmp)) return SendClientMessage(playerid,COLOR_GREY,"USAGE: /uncuff playerid");
    giveplayerid = ReturnUser(tmp);
    if(!IsPlayerConnected(giveplayerid)) return SendClientMessage(playerid,COLOR_GREY,"Invalid player id.");
    TogglePlayerControllable(giveplayerid,1);
    GameTextForPlayer(giveplayerid, "~y~ You have been Uncuffed!",2500,3);
   }
   return 1;
  }
Reply


Messages In This Thread
Help With CMD - by striker25 - 10.07.2010, 18:23
Re: Help With CMD - by Kar - 10.07.2010, 18:26
Re: Help With CMD - by Adil - 10.07.2010, 18:43

Forum Jump:


Users browsing this thread: 1 Guest(s)