[Ajuda] BUG ?
#8

Alisson,
1 verifique se vocк tem 2 /darsocio
2 subistitua a linha com o nome la, bote if (PlayerInfo[playerid][pAdmin] >= 1341)


se n der certo, substitua seu comando por este:
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 true;
            }
            new para1;
            para1 = ReturnUser(tmp);
            tmp = strtok(cmdtext, idx);
            GetPlayerName(playerid, sendername, 256);
            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 Sуcio 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 true;
    }
Se ainda n der, delete o seu .amx e mande compilar dnv.
Reply


Messages In This Thread
BUG ? - by Alisson Silva Alves - 24.12.2012, 00:08
Re: BUG ? - by Micael.Nees - 24.12.2012, 00:11
Re: BUG ? - by Alisson Silva Alves - 24.12.2012, 00:18
Re: BUG ? - by Micael.Nees - 24.12.2012, 00:20
Re: BUG ? - by Alisson Silva Alves - 24.12.2012, 00:21
Re: BUG ? - by rjjj - 24.12.2012, 00:24
Re: BUG ? - by Alisson Silva Alves - 24.12.2012, 00:29
Re: BUG ? - by Micael.Nees - 24.12.2012, 00:32
Re: BUG ? - by Alisson Silva Alves - 24.12.2012, 00:34
Re: BUG ? - by Micael.Nees - 24.12.2012, 00:36

Forum Jump:


Users browsing this thread: 1 Guest(s)