[Ajuda] SetTimerEx Bugado "Relogio UP"
#10

Quote:
Originally Posted by ipsLuan
View Post
Poste a callback RelogioUp.
PHP Code:
forward RelogioUP(playerid);
public 
RelogioUP(playerid)
{
    if(
pSegUP[playerid] == && pMinUP[playerid] == 0)
    {
        if(
PlayerInfo[playerid][Logado] == true)
        {
            if(
PlayerInfo[playerid][Afk] == false)
            {
                
//dini_IntSet(file, "Tempo", dini_Int(file, "Tempo")+1);
                
if(PlayerInfo[playerid][Exp] == 5)
                {
                    
MessageFormat(playerid0x75EA00AA"| UP | Vocк ganhou +1 de Experiкncia ( %d/5 )"PlayerInfo[playerid][Exp]);
                    
PlayerInfo[playerid][Exp]=0;
                    
PlayerInfo[playerid][Level]++;
                    
MessageFormat(playerid0x75EA00AA"| UP | Vocк juntou 5 de Experiкncia e ganhou +1 level ( %d ) ",PlayerInfo[playerid][Level]);
                    
PlayerPlaySound(playerid1057000);
                } else {
                    
PlayerInfo[playerid][Exp]++;
                    
PlayerPlaySound(playerid1057000);
                    
GameTextForPlayer(playerid"~w~UP!"30006);
                    
MessageFormat(playerid0x75EA00AA"| UP | Vocк ganhou +1 de Experiкncia ( %d/5 )"PlayerInfo[playerid][Exp]);
                    
//dini_IntSet(file, "Tempo",0);
                
}
            }
        }
    }
    if(
pSegUP[playerid] == -1)
    {
        if(
pMinUP[playerid] == 0)
        
pMinUP[playerid]=10;
        
pSegUP[playerid]=59;
        
pMinUP[playerid]--;
    }
    
format(Stringsizeof(String), "~w~+~b~UP: ~w~%02d:%02d"pMinUP[playerid],pSegUP[playerid]);
    
PlayerTextDrawSetString(playeridPlayerStatus[playerid][20], String);
    
pSegUP[playerid]--;
    return 
1;

Eu estou muito lento nos raciocнnio, estou aprendendo e criando um server.
Reply


Messages In This Thread
SetTimerEx Bugado "Relogio UP" - by CALENZ021 - 30.03.2019, 00:30
Re: SetTimerEx Bugado "Relogio UP" - by GuiKommander - 30.03.2019, 01:29
Re: SetTimerEx Bugado "Relogio UP" - by XandyMello - 30.03.2019, 01:47
Re: SetTimerEx Bugado "Relogio UP" - by CALENZ021 - 30.03.2019, 09:34
Re: SetTimerEx Bugado "Relogio UP" - by XandyMello - 30.03.2019, 09:51
Re: SetTimerEx Bugado "Relogio UP" - by CALENZ021 - 30.03.2019, 10:06
Re: SetTimerEx Bugado "Relogio UP" - by GuiKommander - 30.03.2019, 11:15
Re: SetTimerEx Bugado "Relogio UP" - by ipsLuan - 30.03.2019, 12:36
Re: SetTimerEx Bugado "Relogio UP" - by LockedLucas - 30.03.2019, 23:04
Re: SetTimerEx Bugado "Relogio UP" - by CALENZ021 - 01.04.2019, 22:33
Re: SetTimerEx Bugado "Relogio UP" - by CALENZ021 - 01.04.2019, 22:48
Re: SetTimerEx Bugado "Relogio UP" - by CALENZ021 - 05.04.2019, 06:12
Re: SetTimerEx Bugado "Relogio UP" - by 1sbedx - 05.04.2019, 06:22
Re: SetTimerEx Bugado "Relogio UP" - by CALENZ021 - 13.04.2019, 18:38

Forum Jump:


Users browsing this thread: 2 Guest(s)