Portal SAMP
[Ajuda] warning 213: tag mismatch - Versão de Impressão

+- Portal SAMP (https://portalsamp.com)
+-- Fórum: SA-MP (https://portalsamp.com/forumdisplay.php?fid=5)
+--- Fórum: Área de suporte (https://portalsamp.com/forumdisplay.php?fid=6)
+--- Tópico: [Ajuda] warning 213: tag mismatch (/showthread.php?tid=2447)

Páginas: 1 2 3


RE: warning 213: tag mismatch - GUI_DA_Z5 - 05/06/2022

(05/06/2022 18:08)k2bi_YT Escreveu: Você tem a função GetPlayerID?
Código PHP:
GetPlayerID(const name[])
{
    foreach(new Player)
    {
        if(IsPlayerConnected(i))
        {
            if(!strcmp(PlayerName(i), namefalse)) return i;
        }
    }
    return INVALID_PLAYER_ID;
}


static 
stock PlayerName(playerid)
{
    new Name[MAX_PLAYER_NAME];
    GetPlayerName(playeridNamesizeof Name);
    return Name;


tenho mais ela e diferente 
Código PHP:
stock GetPlayerID(nick[])
{
    new sNick[MAX_PLAYER_NAME];

    for(new pMAX_PLAYERS; ++p)
    {
        if(IsPlayerConnected(p))
        {
            GetPlayerName(psNicksizeof(sNick));

            if(!strcmp(sNicknick))
            {
                return p;
            }
        }
    }

    return INVALID_PLAYER_ID;