Raised This Month: $ Target: $400
 0% 

Solved How to get random number?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 12-03-2018 , 09:01   Re: How to get random number?
Reply With Quote #3

PHP Code:
//// GLOBAL /////
enum
{
    
INFECTION 0,
    
NEMESIS,
    
ASSASSIN
}

new 
g_iMode;
////////////////////

new iRandomNum random_num1);

switch( 
iRandomNum )
{
    case 
1:
    {
        
g_iMode INFECTION;
    }

    case 
2:
    {
        
g_iMode NEMESIS:
    }

    case 
3:
    {
        
g_iMode ASSASSIN;
    }

__________________

Last edited by edon1337; 12-03-2018 at 09:02.
edon1337 is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:34.


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