[Ajuda] Contagem
#1

Seguinte galera.
Eu estou tentando fazer o mesmo cуdigo de vбrios jeitos diferentes desde tarde.
O que eu quero й simples:
Eu tenho uma include que detecta quando o player estб pausado, e eu tenho tambйm um texto que aparece em cima dele: AFK - 10 Segundos.
Mas o problema й que fica no 1, ele nгo conta: 2, 3, e etc...

Se puderem ajudar eu agradeзo muito!
Cуdigos:

Public: Quando o Player estб pausado!
PHP Code:
            format(stringsizeof(string), "AFK %d Segundos"Contagem[playerid]);         
            
Pause[playerid] = Create3DTextLabel(string,0xEE7600FF,30.040.050.010.000); 
            
Attach3DTextLabelToPlayer(Pause[playerid], playerid0.00.00.3);                      
            
TempoContagem[playerid] = SetTimerEx("StartPause"1000true"i"playerid); 
Public: StartPause
PHP Code:
forward StartPause(playerid);
public 
StartPause(playerid)

    if(
Contagem[playerid] == 999
    { 
        
KillTimer(TempoContagem[playerid]);
        return 
true
    }
    
Contagem[playerid]++;       
    return 
1;

PS: Lб no topo estб setado: Contagem[MAX_PLAYERS] = 1;, para a contagem iniciar do nъmero 1.
Reply


Messages In This Thread
Contagem - by Lessk - 02.07.2013, 07:35
Re: Contagem - by Don_Speed - 02.07.2013, 10:10
Re: Contagem - by paulor - 02.07.2013, 14:41
Re: Contagem - by Lessk - 02.07.2013, 17:35
Re: Contagem - by paulor - 03.07.2013, 00:14
Re : Contagem - by ThiagoMK - 03.07.2013, 01:00

Forum Jump:


Users browsing this thread: 2 Guest(s)