09.06.2009, 18:18
Hello again!
i tried to make a command for cops
Than i get a few errors
this is my script
and this are my warnings
i tried to make a command for cops
Than i get a few errors
this is my script
Код:
if (strcmp("/kill", cmdtext, true, 10) == 0) { SetPlayerHealth(playerid,0); // kills the player return 1; } if (strcmp("/commands", cmdtext, true, 10) == 0) { SendClientMessage(playerid,0xAA3333AA,"For Commands type /gamecmds");// the players commands return 1; } if (strcmp("/gamecmds", cmdtext, true, 10) == 0) { SendClientMessage(playerid,0xAA3333AA,"/animlist a list with animations");// the players commands SendClientMessage(playerid,0xAA3333AA,"/kill this command will kill you!");// killplayer command return 1; } if(strcmp(cmd,"/copcommands",true)==0) { if(gTeam[playerid] == TEAM_COPS) { SendClientMessage(playerid,0xAA3333AA,"/cuff ID /arrest ID /fine ID /rp ID"); else ; SendClientMessage(playerid,0xAA3333AA,"you are not a cop!"); } return 1; } return 1; }
Код:
C:\Gta sa server\gamemodes\freeroam.pwn(361) : error 017: undefined symbol "cmd" C:\Gta sa server\gamemodes\freeroam.pwn(366) : error 029: invalid expression, assumed zero C:\Gta sa server\gamemodes\freeroam.pwn(366) : warning 215: expression has no effect Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors. code] i don't know what i do wrong xD help me plz again