08.09.2013, 23:57
eai pessoal, quando eu vou copila esse codigo
ele da esses erros
por favor ajuda ai nao sei mecher muito com isso
Код:
public OnRconLoginAttempt(ip[], password[], success) { for(new i = 0; i < MAX_PLAYERS; i++) { GetPlayerName(i, playername, sizeof(playername)); if(!strcmp(playername, "NICK1", true) || !strcmp(playername, "NICK2", true) || !strcmp(playername, "NICK3", true)) { SendClientMessage(i, 0xFF0000AA, "[INFO]{FFFFFF}Vocк estб autorizado a logar na RCON."); } else { SendClientMessage(i, 0xFF0000AA, "[BRP~System]{FFFFFF}Vocк nгo estб autorizado a logar na RCON."); Kick(i); } } return 1; }
Код:
C:\Users\DreikLOL\Desktop\lolfff.pwn(1) : warning 235: public function lacks forward declaration (symbol "OnRconLoginAttempt") C:\Users\DreikLOL\Desktop\lolfff.pwn(3) : error 017: undefined symbol "MAX_PLAYERS" C:\Users\DreikLOL\Desktop\lolfff.pwn(5) : error 017: undefined symbol "GetPlayerName" C:\Users\DreikLOL\Desktop\lolfff.pwn(5) : error 017: undefined symbol "playername" C:\Users\DreikLOL\Desktop\lolfff.pwn(5) : error 029: invalid expression, assumed zero C:\Users\DreikLOL\Desktop\lolfff.pwn(5) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 5 Errors.