[Ajuda] Tem alguma forma de fazer SetTimer aleatorio? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Tem alguma forma de fazer SetTimer aleatorio? (
/showthread.php?tid=357946)
Tem alguma forma de fazer SetTimer aleatorio? -
ShakeTH4T - 08.07.2012
olб! Queria saber se existe alguma forma de colocar o SetTimer em random, dele escolher uma callback aleatoria! Serб que tem alguma forma? Obrigado =)
Re: Tem alguma forma de fazer SetTimer aleatorio? -
.FuneraL. - 08.07.2012
Quote:
Originally Posted by ShakeTH4T
olб! Queria saber se existe alguma forma de colocar o SetTimer em random, dele escolher uma callback aleatoria! Serб que tem alguma forma? Obrigado =)
|
Acho que nгo hб essa possibilidade, se tem eu desconheзo ,porque os parametros do settimer sгo feitos para chamarem ou atuar em uma callback apenas.
Re: Tem alguma forma de fazer SetTimer aleatorio? -
Edu33 - 08.07.2012
Nгo tem como. Pelo meu ver nгo.
Re: Tem alguma forma de fazer SetTimer aleatorio? -
ShakeTH4T - 08.07.2012
=( que pena
Re: Tem alguma forma de fazer SetTimer aleatorio? -
Dolby - 08.07.2012
Pensei em uma 'gambiarra' para fazer isto,iria chamar somente callback's 'definidas por vocк' ou qualquer uma do Script?
Re: Tem alguma forma de fazer SetTimer aleatorio? -
ViniBorn - 08.07.2012
Tem sim mas nгo poderei postar agora.
Re: Tem alguma forma de fazer SetTimer aleatorio? -
ShakeTH4T - 08.07.2012
Quote:
Originally Posted by Gustavo_Araujo
Pensei em uma 'gambiarra' para fazer isto,iria chamar somente callback's 'definidas por vocк' ou qualquer uma do Script?
|
definidas por mim mesmo!
Re: Tem alguma forma de fazer SetTimer aleatorio? -
Dolby - 08.07.2012
pawn Код:
new Numero = random(5);
switch(Numero)
{
case 1: SetTimer("Nomedapublic1",Tempo,Repeat);
case 2: SetTimer("Nomedapublic2",Tempo,Repeat);
case 3: SetTimer("Nomedapublic3",Tempo,Repeat);
case 4: SetTimer("Nomedapublic4",Tempo,Repeat);
}
Kkkkkkkkk.
Re: Tem alguma forma de fazer SetTimer aleatorio? -
CidadeNovaRP - 08.07.2012
Quote:
Originally Posted by Gustavo_Araujo
pawn Код:
new Numero = random(5); switch(Numero) { case 1: SetTimer("Nomedapublic1",Tempo,Repeat); case 2: SetTimer("Nomedapublic2",Tempo,Repeat); case 3: SetTimer("Nomedapublic3",Tempo,Repeat); case 4: SetTimer("Nomedapublic4",Tempo,Repeat); }
Kkkkkkkkk.
|
Exato
Re: Tem alguma forma de fazer SetTimer aleatorio? -
ShakeTH4T - 08.07.2012
Poxa cara obrigado! Muito obrigado! Nossa , muito,muito obrigado! Obrigado mesmo!