AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Would this work? (https://forums.alliedmods.net/showthread.php?t=29601)

NewUser 06-08-2006 15:43

Would this work?
 
Code:
new random = random_num(1,2) switch(random) {     case 0:     {         // stuff     }     case 1:     {         // stuff     } }

Curious.

Basic-Master 06-08-2006 15:48

you're generating a number between 1 and 2 and try to compare it with 0 and 1? doesn't make much sense ^^ replace 0 and 1 with 1 and 2 and it'd work

VEN 06-09-2006 02:44

Code:
random(2)
Will work.


All times are GMT -4. The time now is 16:18.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.