[Ajuda] Ajuda em numeros aleatorios para cod
#1

Olá galera, queria saber como eu poderia criar para o meu gamemode gerar um numero aletorio como esse por exemplo 481.782.268 tipo assim.

OBS: sei fazer para mandar mnsg aleatoria creio q seja parecido mas n consigo desenvolver
Reply
#2

Random
Reply
#3

Exemplo
PHP код:
new Numb,stringg[35];
Numb = (random(50000));
format(stringgsizeof(stringg), "Nъmero aleatуrio: %d",Numb);
SendClientMessage(playerid,-1,stringg); 
Reply
#4

Quote:
Originally Posted by Marllun
Посмотреть сообщение
Exemplo
PHP код:
new Numb,stringg[35];
Numb = (random(50000));
format(stringgsizeof(stringg), "Nъmero aleatуrio: %d",Numb);
SendClientMessage(playerid,-1,stringg); 
A variбvel й desnecessбria neste caso. Use:

PHP код:
new stringg[35];
format(stringgsizeof(stringg), "Nъmero aleatуrio: %d",random(50000));
SendClientMessage(playerid,-1,stringg); 
Reply
#5

Sim.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)