03.02.2013, 21:14
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strccmd(cmd,"/kick",true)==0){
new aname[MAX_PLAYERS_NAME];
GetPlayerName(playerid,aname,MAX_PLAYERS_NAME);
format(file,sizeof(file),CONTAS,aname);
if{pAdmin[playerid]== 1){
new tmp[256]
strmid{tmp,cmdtext, 2,strlen(cmdtext));
if(lsrlen(tmp))[
SendClientMessage(playerid,Vermelho,"Digite: /Kick [ID DO PLAYER]);
return 1;
}else[
format(string,sizeof(string, |ADMIN-CMD| O Administrador %s Kikcou o Jogador %!"aname,tmp);
return 1;
SendClientMessage,playerid,azul" |ERRO| Vocк nгo tem Permissгo para Executar este Comando!);
}
return 1;
}
pawn Код:
C:\Users\Matheus\Desktop\GTA\Brasil PlayCity - Cуpia\gamemodes\BSG.pwn(95) : error 017: undefined symbol "strccmd"
C:\Users\Matheus\Desktop\GTA\Brasil PlayCity - Cуpia\gamemodes\BSG.pwn(96) : error 017: undefined symbol "MAX_PLAYERS_NAME"
C:\Users\Matheus\Desktop\GTA\Brasil PlayCity - Cуpia\gamemodes\BSG.pwn(96) : error 009: invalid array size (negative, zero or out of bounds)
C:\Users\Matheus\Desktop\GTA\Brasil PlayCity - Cуpia\gamemodes\BSG.pwn(96) : error 036: empty statement
C:\Users\Matheus\Desktop\GTA\Brasil PlayCity - Cуpia\gamemodes\BSG.pwn(96) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
5 Errors.