[AJUDA] Relogio UP e UP
#3

Entendi... Tentei e nгo deu por essa base...

@Edit

Consegui! Obrigado!

Cуdigo Correto:

pawn Код:
public RelogioUP(i)
    {
        new string[256];
        new aname[MAX_PLAYER_NAME];
        GetPlayerName(i, aname, MAX_PLAYER_NAME);
        format(file, sizeof(file), P_CONTAS, aname);
        if(segUP == 01 && minUP == 0)
        {
            dini_IntSet(file, "EXP", dini_Int(file, "EXP")+1);
            format(string, sizeof(string), "| UP | Vocк ganhou +1 experiкncia! [%d / 5]",dini_Int(file, "EXP"));
            PlayerPlaySound(i, 1057, 0, 0, 0);
            GameTextForPlayer(i, "~w~UP!", 3000, 6);
            SendClientMessage(i, 0x75EA00AA, string);
            }
            if(dini_Int(file, "EXP") >=5){
            dini_IntSet(file, "Level", dini_Int(file, "Level")+1);
                format(string, sizeof(string), "| UP | Vocк juntou 5 experiкncias e ganhou +1 level! [ %d ] ",dini_Int(file, "Level"));
            SendClientMessage(i, 0x75EA00AA, string);
            dini_IntSet(file, "EXP",0);
            //dini_IntSet(file, "rouboubanco", 0);
            dini_IntSet(file, "CriouBarreira", 0);
            jasequestro[i] = 0;
            jacomeupizza[i] = 0;
            Up();
            }
                if(segUP==0){
                if(minUP == 0)
                minUP = 10;
                segUP=59;
                minUP--;
                }
                        if(segUP <= 9){ format(string,60,"~p~UP~b~: ~w~%d~b~:~w~0%d",minUP,segUP);
                        } else {
                        format(string,60,"~p~UP~b~: ~w~%d~b~:~w~%d",minUP,segUP);
                    }
                TextDrawSetString(UPRelogio,string);
                segUP --;
                return 1;
            }
Reply


Messages In This Thread
[AJUDA] Relogio UP e UP - by Allanrokeiro - 14.01.2012, 20:11
Re: [AJUDA] Relogio UP e UP - by WeenSoares_ - 14.01.2012, 20:19
Re: [AJUDA] Relogio UP e UP - by Allanrokeiro - 14.01.2012, 20:33

Forum Jump:


Users browsing this thread: 1 Guest(s)