[Pedido] Gerar nъmeros 2 aleatуrios sem repetir
#3

Eu fiz assim:

PHP код:

CMD
:numero(playerid)
{
    new 
number1number2string[255];
    
number1 randomValue(9number1);
    
number2 randomValue(9number2);
    
    
format(stringsizeof(string), "%d %d"number1number2);
    
SendClientMessage(playerid, -1string);
    return 
1;

Vк se ta certo, por que saiu nъmero repetido 55
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)