[Ajuda] Comando nгo funciona!
#1

Olб, boa tarde!

O comando nгo quer funcionar... O comando nгo responde... Nгo fala nada...

pawn Код:
if(strcmp(cmd, "/darvip", true) == 0)
    {
        if(PlayerInfo[playerid][pAdmin] < 1340)
        {
            new ID;
            new Dias;

            if(!sscanf(cmdtext,"ud",ID,Dias))
            {
                SendClientMessage(playerid,0xBFBFBFAA,"Use: /darvip ID Dias.");
                return 1;
            }
            if(!IsPlayerConnected(ID))
            {
                SendClientMessage(playerid,0xBFBFBFAA,"Player nгo online.");
                return 1;
            }
            else
            {
                if(PlayerInfo[ID][pVIP] == 2)
                {
                    SendClientMessage(playerid,0xBFBFBFAA,"O mesmo Jб й VIP.");
                    return 1;
                }
                else
                {
                    GetPlayerName(ID,Nome,sizeof(Nome));
                    format(Falao,sizeof(Falao),"Vips/%s.ini",Nome);

                    dini_Create(Falao);
                    dini_IntSet(Falao,"Vencimento",getdate());
                    dini_IntSet(Falao,"Dias",Dias);

                    PlayerInfo[ID][pVIP] = 2;

                    format(Falao,sizeof(Falao),"O administrador deu VIP para o player %s por %d dias.",Nome,Dias);
                    SendClientMessageToAll(0xFF8080AA,Falao);
                }
            }
        }
        return 1;
    }
pawn Код:
if(strcmp(cmd, "/removervip", true) == 0)
    {
        if(PlayerInfo[playerid][pAdmin] < 1340)
        {
            new ID;
            if(!sscanf(cmdtext,"u",ID))
            {
                SendClientMessage(playerid,0xBFBFBFAA,"Use: /removervip ID.");
                return 1;
            }
            if(!IsPlayerConnected(ID))
            {
                SendClientMessage(playerid,0xBFBFBFAA,"Player nгo online.");
                return 1;
            }
            else
            {
                if(PlayerInfo[ID][pVIP] == 0)
                {
                    SendClientMessage(playerid,0xBFBFBFAA,"O mesmo nгo й VIP.");
                    return 1;
                }
                else
                {
                    GetPlayerName(ID,Nome,sizeof(Nome));
                    format(Falao,sizeof(Falao),"Vips/%s.ini",Nome);

                    dini_Remove(Falao);

                    PlayerInfo[ID][pVIP] = 0;

                    format(Falao,sizeof(Falao),"O administrador removeu o VIP do player %s.",Nome);
                    SendClientMessageToAll(0xFF8080AA,Falao);
                }
            }
        }
        return 1;
    }
Vlw!
Reply
#2

Por que nгo pediu ajuda no outro tуpico que vocк criou por causa desse mesmo assunto? https://sampforum.blast.hk/showthread.php?tid=449116
Reply
#3

Olб, bom dia!

Delete_, o outro tуpico jб foi respondido. Agora estou com outra dъvida.

Alguem me ajuda ?!

Vlw!
Reply
#4

Olб, boa tarde!

UP! Jб se passaram 24 horas

Vlw!
Reply
#5

Olб, boa noite.

O problema foi resolvido. Consegui fazer.

@Off, Porque tem pessoas que sгo assim... .-.


Vlw!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)