SA-MP Forums Archive
[Ajuda] Comando nгo funciona! - 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] Comando nгo funciona! (/showthread.php?tid=449141)



Comando nгo funciona! - NuTShoT - 07.07.2013

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!


Re: Comando nгo funciona! - Delete_ - 07.07.2013

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


Re: Comando nгo funciona! - NuTShoT - 07.07.2013

Olб, bom dia!

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

Alguem me ajuda ?!

Vlw!


Re: Comando nгo funciona! - NuTShoT - 08.07.2013

Olб, boa tarde!

UP! Jб se passaram 24 horas

Vlw!


Re: Comando nгo funciona! - NuTShoT - 10.07.2013

Olб, boa noite.

O problema foi resolvido. Consegui fazer.

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


Vlw!