01.05.2010, 22:47
Try this: I assume this simpler for this case..?
And you can delete the new RandomCode thing
Код:
forward randcode(playerid); public randcode(playerid) { new rand = random(3); if (rand == 0) { // Random thing number 1 } if (rand == 1) { // Random thing number 2 } if (rand == 2) { // Random thing number 3 } return 1; }