Raised This Month: $ Target: $400
 0% 

Array and variables


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
akysiev
Junior Member
Join Date: Mar 2006
Location: Earth
Old 03-24-2006 , 06:57  
Reply With Quote #9

What I'm confused about is what you want g_HighBanMenuValues to refer to, a string or an integer. The code you wrote is equivalent to

Code:
if (get_user_flags(id)&HIGHER_BAN_TIME_ADMIN) {     switch(g_menuOption[id])     {         case 0: g_menuSettings[id] = 60         case 1: g_menuSettings[id] = 4320         case 2: g_menuSettings[id] = 10080         case 3: g_menuSettings[id] = 0     } }

Please tell us exactly how you want the code to operate. By the way, the if clauses are written as such:

Code:
if (boolean) { } else if (boolean) { } else { } //or if (boolean) <in-line code here>
akysiev 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 16:38.


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