count down 3d text
#1

Hello , i try to make a count down system with 3d text label
so please help me it's dosent work
PHP код:
enum Float:zTime 300
PHP код:
forward WriteLabelUpdate(); public WriteLabelUpdate(){
    for(new 
0MAX_ZONESSi++)
    {
        
UpdateDynamic3DTextLabelText(tZone[i], 0xAA3333FF"Capturer\nla zone");
        if(
ZoneInfo[i][zTaken] == 1){
                        
format(s,s,"%s"ZoneInfo[i][zTime] /10 ); //30 mn
              
UpdateDynamic3DTextLabelText(tZone[i], 0x000000FF,s);
            
TimeDecharge[i] = SetTimer("UpDown"900*60true);
              if(
ZoneInfo[i][zTime] == )
              {
                  
ZoneInfo[i][zTime] = 300;
                  
ZoneInfo[i][zTaken] = 0;
                  
KillTimer(TimeDecharge[i]);
             }
        }
    }
}
forward UpDown(); public UpDown(){
    for(new 
0MAX_ZONESSi++)
    {
        
ZoneInfo[i][zTime] --;
    }

Thanks
Reply
#2

Hello!

Try this:
PHP код:
forward WriteLabelUpdate();public WriteLabelUpdate(){
    for(new 
i;i<MAX_ZONESS;i++){
        
UpdateDynamic3DTExtLabelText(tZone[i],0xAA3333FF,"Capturer\nla zone");
        if(!
ZoneInfo[i][zTaken])continue;
        
format(s,s,ZoneInfo[i][zTime] / 10);
        
UpdateDynamic3DTextLabelText(tZone[i],0x000000FF,s);
        
ZoneInfo[i][zTime] --;
        if(!
ZoneInfo[i][zTime])ZoneInfo[i][zTime]=300,ZoneInfo[i][zTaken]=0;
    }
    return 
1;

Mencent
Reply
#3

why
format(s,s,ZoneInfo[i][zTime] / 10); ? thank you for reply
Reply
#4

PHP код:
format(s,s,ZoneInfo[i][zTime] / 10); 
is the same how
PHP код:
format(s,s,"%s"ZoneInfo[i][zTime] /10 ); 
Are there any problems or does it work?

Mencent
Reply
#5

dosent work no count down ^^
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)