SA-MP Forums Archive
[Ajuda] Ai Pode arrumar esse codigo pra mim samp 0.3x - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Ai Pode arrumar esse codigo pra mim samp 0.3x (/showthread.php?tid=462858)



Ai Pode arrumar esse codigo pra mim samp 0.3x - dreiklol - 08.09.2013

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


Re: Ai Pode arrumar esse codigo pra mim samp 0.3x - MoonRey - 09.09.2013

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


Re: Ai Pode arrumar esse codigo pra mim samp 0.3x - PT - 09.09.2013

coloca apos a

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