[Ajuda] Parar um SetTimer
#4

PHP код:
new tempo,timerhandle;

OnGameModeInit () 

   
// sempre repete 
   
timerhandle SetTimer("cont"1000true); 


cont () 

   
// quando o valor for maior que 15 ele para de acrescentar valores no atributo tempo 
  // Mas o mйtodo cont continua sendo chamado  
   
if(tempo 15KillTimer(timerhandle);

   
tempo++; 

Reply


Messages In This Thread
Parar um SetTimer - by Lontresca - 21.03.2018, 13:58
Re: Parar um SetTimer - by SamuelMatheus05 - 21.03.2018, 14:04
Re: Parar um SetTimer - by F1N4L - 21.03.2018, 14:14
Re: Parar um SetTimer - by ReDKiiL - 21.03.2018, 14:15
Re: Parar um SetTimer - by Lontresca - 21.03.2018, 14:20
Re: Parar um SetTimer - by [BOPE]Seu._.Madruga - 21.03.2018, 16:49

Forum Jump:


Users browsing this thread: 1 Guest(s)