Raised This Month: $ Target: $400
 0% 

breaking up an if statement into multiple if statements?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
diamond-optic
Veteran Member
Join Date: May 2005
Old 04-05-2009 , 15:20   Re: breaking up an if statement into multiple if statements?
Reply With Quote #6

alright...


and yeah i usually use switches if they seem appropriate..

but with an if statement such as this for example i figured one if statement would be fine
Code:
if(!get_pcvar_num(p_whatever) || !is_user_connected(id) || is_user_bot(id) || !is_user_alive(id) || ent > maxplayers || g_round_restart)     return HAM_IGNORED
__________________
diamond-optic 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 02:17.


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