SA-MP Forums Archive
[Ajuda] error 017: undefined symbol "nome" - 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] error 017: undefined symbol "nome" (/showthread.php?tid=439326)



error 017: undefined symbol "nome" - MatheusMendes - 25.05.2013

Код:
#define MAX_PING 700
PHP код:
public OnPlayerUpdate(playerid)
{
    new 
pname[MAX_PLAYER_NAME];
    new 
string [256];
    new 
ping GetPlayerPing(playerid);
    if(
ping MAX_PING)
    {
        
format(stringsizeof(string), "O jogador %s [ID: %d] foi kickado do servidor por ultrapassar o ping maximo (%d)."nome(playerid), playeridMAX_PING);
        
Kick(playerid);
        
SendClientMessageToAll(Verde_Florestastring);
    }
    return 
1;

Код:
C:\Users\Matheus-PC\Desktop\samp03x_svr_R1-2_win32\gamemodes\GamingFoxBrasil.pwn(817) : error 017: undefined symbol "nome"
C:\Users\Matheus-PC\Desktop\samp03x_svr_R1-2_win32\gamemodes\GamingFoxBrasil.pwn(812) : warning 204: symbol is assigned a value that is never used: "pname"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
oque ta errado ai ?


Re: error 017: undefined symbol "nome" - ProKillerpa - 25.05.2013

pawn Код:
public OnPlayerUpdate(playerid)
{
    new pname[MAX_PLAYER_NAME];
    new string [256];
    new ping = GetPlayerPing(playerid);
    if(ping > MAX_PING)
    {
        format(string, sizeof(string), "O jogador %s [ID: %d] foi kickado do servidor por ultrapassar o ping maximo (%d).", pname, playerid, MAX_PING);
        Kick(playerid);
        SendClientMessageToAll(Verde_Floresta, string);
    }
    return 1;
}



Re: error 017: undefined symbol "nome" - MatheusMendes - 25.05.2013

funfou vlw +rep pra vse