1 error with commands for classes
#3

Quote:
Originally Posted by Pawno_Master
Код:
C:\Gta sa server\gamemodes\freeroam.pwn(361) : error 017: undefined symbol "cmd"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Or, instead of changing a little bit of code, use this:

pawn Код:
//at the top of "OnPlayerCommandText"
new cmd[256];
//it would look like this:
public OnPlayerCommandText(playerid, cmdtext[])
{
new cmd[256];
    if(strcmp(cmd,"/copcommands",true)==0)
        {
    if(gTeam[playerid] == TEAM_COPS)
    {
    SendClientMessage(playerid, 0xAA3333AA,"Your commands are /cuff ID /fine ID /arrest ID /rp ID");
    }
    return 1;

    return 0;
}
Reply


Messages In This Thread
1 error with commands for classes - by Pawno_Master - 11.06.2009, 17:26
Re: 1 error with commands for classes - by dice7 - 11.06.2009, 18:25
Re: 1 error with commands for classes - by Burridge - 11.06.2009, 18:28
Re: 1 error with commands for classes - by HydraX - 11.06.2009, 19:49
Re: 1 error with commands for classes - by Correlli - 11.06.2009, 19:55
Re: 1 error with commands for classes - by SEC - 11.06.2009, 19:58

Forum Jump:


Users browsing this thread: 1 Guest(s)