Raised This Month: $ Target: $400
 0% 

JailBreak native


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Mirk
Senior Member
Join Date: Nov 2012
Old 02-14-2015 , 06:46   Re: JailBreak native
Reply With Quote #11

Quote:
Originally Posted by OnePL View Post
better to do so:

PHP Code:
enum {
    
Boxing 0,
    
SnowBall,
    
GunGame
}

public 
jbe_get_admin_mode(iMod) {
    switch(
iMod) {
        case 
Boxing: return g_bBoxMatch
        
case SnowBall: return g_bSnowBallWar
        
case GunGame: return g_bGunGame
    
}
    return 
0

or

PHP Code:
enum {
    
Boxing 0,
    
SnowBall,
    
GunGame
}

public 
jbe_get_admin_mode(iMod) return iMod == Boxing g_bBoxMatch iMod == SnowBall g_bSnowBallWar iMod == GunGame g_bGunGame 
Thanks ;)
Mirk 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 06:18.


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