I need a /cuff and /uncuff command
#7

Quote:
Originally Posted by coole210
pawn Код:
if (strcmp("/cuff", cmdtext, true, 15) == 0)
    {
    new tmp[128];
    new idx;
    new giveplayerid;
    new giveplayer[MAX_PLAYER_NAME];
    new sendername[MAX_PLAYER_NAME];
    tmp = strtok(cmdtext,idx);
    if(!strlen(tmp) return SendClientMessage(playerid,0xAA3333AA,"USAGE: /cuff playerid");
    giveplayerid = strval(tmp);
    if(gTeam[playerid] == TEAM_COP)
    {
    if(gTeam[giveplayerid] == TEAM_COP) return SendClientMessage(playerid,0xAA3333AA,"You cannot cuff cops !");
    ToggePlayerControllable(giveplayerid,0);
    format(tmp,sizeof(tmp),"You have cuffed %s",GetPlayerName(giveplayerid,giveplayer,sizeof(giveplayer));
    SendClientMessage(playerid,0x33AA33AA,tmp);
    format(tmp,sizeof(tmp),"You have been cuffed by %s",GetPlayerName(playerid,sendername,sizeof(sendername));
    return 1;
    }
These are the errors i get now

Код:
C:\Documents and Settings\Anuj_2\Desktop\Copy of TESTTEAM.pwn(194) : error 001: expected token: ")", but found "return"
C:\Documents and Settings\Anuj_2\Desktop\Copy of TESTTEAM.pwn(199) : error 017: undefined symbol "ToggePlayerControllable"
C:\Documents and Settings\Anuj_2\Desktop\Copy of TESTTEAM.pwn(200) : error 001: expected token: ",", but found ";"
C:\Documents and Settings\Anuj_2\Desktop\Copy of TESTTEAM.pwn(202) : error 001: expected token: ",", but found ";"
C:\Documents and Settings\Anuj_2\Desktop\Copy of TESTTEAM.pwn(221) : warning 209: function "OnPlayerCommandText" should return a value
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
Reply


Messages In This Thread
I need a /cuff and /uncuff command - by killdahobo99 - 27.07.2009, 23:40
Re: >>>>>>HELP WILLING TO PAY<<<<<<< - by killdahobo99 - 28.07.2009, 00:28
Re: >>>>>>HELP WILLING TO PAY<<<<<<< - by pepper - 28.07.2009, 00:29
Re: >>>>>>HELP WILLING TO PAY<<<<<<< - by killdahobo99 - 28.07.2009, 00:33
Re: >>>>>>HELP WILLING TO PAY<<<<<<< - by coole210 - 28.07.2009, 00:36
Re: >>>>>>HELP WILLING TO PAY<<<<<<< - by Kenny990 - 28.07.2009, 00:37
Re: >>>>>>HELP WILLING TO PAY<<<<<<< - by killdahobo99 - 28.07.2009, 00:38
Re: >>>>>>HELP WILLING TO PAY<<<<<<< - by coole210 - 28.07.2009, 00:40
Re: >>>>>>HELP WILLING TO PAY<<<<<<< - by killdahobo99 - 28.07.2009, 00:43
Re: >>>>>>HELP WILLING TO PAY<<<<<<< - by coole210 - 28.07.2009, 00:44

Forum Jump:


Users browsing this thread: 1 Guest(s)