10.02.2015, 15:59
Hey everyone,
Is it possible to compare a random number this is drawn with switch. To a number a player types in a params?
For instance
If I had
And say they said "/ticket 23"
I then want to do a random switch like
and so on......
Is this possible?
Is it possible to compare a random number this is drawn with switch. To a number a player types in a params?
For instance
If I had
Код:
CMD:Ticket (playerid, params[]) { new string[128], number; if(sscanf(params, "d", number))
I then want to do a random switch like
Код:
Switch(random(100)) case 1: { if ------Checks to make sure the can pay for a ticket { If there number matches 1 here } else Tell them what number HERE } return 1; } Case 2:
Is this possible?