19.10.2014, 03:44
See I wanted to make a Pinfo Variable that saves When Typed a CMD I want that variable to be 3 Random Numbers So how can I do it ? Turn it to 3 Random Numbers ?
CMD:random(playerid, params[])
{
new rand = randomEx(1, 3);
if(rand == 1)
{
SendClientMessage(playerid, -1, "random 1");
}
else if(rand == 2)
{
endClientMessage(playerid, -1, "random 2");
}
else if(rand == 3)
{
endClientMessage(playerid, -1, "random 3");
}
return 1;
}
stock randomEx(min, max)
{
new rand = random(max-min) +min;
return rand;
}