[Ajuda] Ai Pode arrumar esse codigo pra mim samp 0.3x
#1

eai pessoal, quando eu vou copila esse codigo

Код:
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;
}
ele da esses erros

Код:
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.
por favor ajuda ai nao sei mecher muito com isso
Reply
#2

Pelo que vi vocк ta tentando colocar ela no comeзo da GM certo? Tenta colocar no final dela :3
Reply
#3

coloca apos a

pawn Код:
#include <a_samp>
que ja nao dara erros
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)