[Ajuda] Erro 017.
#1

Eae Galeera, quando eu vou compilar meu GM da o seguinte erro:

pawn Код:
C:\Documents and Settings\RENATA.RENATA-1EC29308\Meus documentos\servidor SAMP\New Server\gamemodes\BPS.pwn(34693) : error 017: undefined symbol "pSocio"


1 Error
Aqui estб o comando e a linha do erro:

pawn Код:
if(strcmp(cmd, "/darsocio", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_GRAD2, "USE: /darsocio [id]");
                return 1;
            }
            new para1;
            para1 = ReturnUser(tmp);
            tmp = strtok(cmdtext, idx);
            if (PlayerInfo[playerid][pAdmin] >= 1341)
            {
                if(IsPlayerConnected(para1))
                {
                    if(para1 != INVALID_PLAYER_ID)
                    {
                        GetPlayerName(para1, giveplayer, sizeof(giveplayer));
                        GetPlayerName(playerid, sendername, sizeof(sendername));
                        PlayerInfo[para1][pSocio] = 1;
                        format(string, sizeof(string), "Vocк ganhou VIP socio do admin %s", sendername);
                        SendClientMessage(para1, COLOR_LIGHTBLUE, string);
                        format(string, sizeof(string), "Vocк deu VIP socio para %s.", giveplayer);
                        SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
                    }
                }
            }
            else
            {
                SendClientMessage(playerid, COLOR_GRAD1, "   Vocк nгo esta autorizado a usar este comando!");
            }
        }
        return 1;
    }

Galeera me da uma ajudinha Please.
Reply
#2

a variбvel "pSocio" nгo estб definida '-'
Reply
#3

cria o psocio la no enum do seu PlayerInfo
Reply
#4

procure por : enum
e adicione : pSocio,
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)