SA-MP Forums Archive
[Ajuda] Random. - 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] Random. (/showthread.php?tid=373840)



Random. - jpeg - 31.08.2012

new RandomNumber;

Uso:

pawn Код:
RandomNumber = random(10);

if(text[0] == RandomNumber)
{
     //...
}
Problema: Mesmo digitando o nъmero random, diz que tб errado.




Re: Random. - Victor' - 31.08.2012

pawn Код:
if(text[0] == strval(RandomNumber))
#Off: Post nъmero 300


Re: Random. - jpeg - 31.08.2012

Claro. Valeu! xD