Raised This Month: $ Target: $400
 0% 

[HELP] Getting num from const depending on condition - easy way


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Flick3rR
Veteran Member
Join Date: Feb 2014
Location: Bulgaria, Stara Zagora
Old 06-15-2014 , 16:45   [HELP] Getting num from const depending on condition - easy way
Reply With Quote #1

So, I won't explain much, because I simply don't know how to explain it properly. Will just give you an example and ask you - is there some better way to get the same result, because I want to make this for pretty huge numbers.
PHP Code:
new num
    
if(Flag Tags[1][flag])    num 1
    
else if(Flag Tags[2][flag])    num 2
    
else if(Flag Tags[3][flag])    num 3
    
else if(Flag Tags[4][flag])    num 4
    
else if(Flag Tags[5][flag])    num 5
    
else if(Flag Tags[6][flag])    num 
__________________
Flick3rR is offline
Send a message via Skype™ to Flick3rR
 



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 21:04.


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