28.04.2010, 23:24
blank
Originally Posted by MadeMan
What are you trying to do?
|
DefuseCodeWall = RandomCode[randCode][0], RandomCode[randCode][1],RandomCode[randCode][2]; -> DefuseCodeWall = RandomCode[randCode][0], RandomCode[randCode][1],RandomCode[randCode][2],RandomCode[randCode][3]; // works
Originally Posted by Assyria
Код:
DefuseCodeWall = RandomCode[randCode][0], RandomCode[randCode][1],RandomCode[randCode][2]; -> DefuseCodeWall = RandomCode[randCode][0], RandomCode[randCode][1],RandomCode[randCode][2],RandomCode[randCode][3]; // works |
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; }
Originally Posted by Assyria
Try this: I assume this simpler for this case..?
Код:
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; } |