Raised This Month: $ Target: $400
 0% 

Get current Map and use 'if'


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-08-2012 , 13:38   Re: Get current Map and use 'if'
Reply With Quote #9

Quote:
Originally Posted by lucas_7_94 View Post
Code:
if( name[ 0 ] == 'c' && name[ 1 ] == 's' && name[ 2 ] == '_' ) cs_* map                    // do stuff if( name[ 0 ] == 'd' && name[ 1 ] == 'e' && name[ 2 ] == '_' ) de_* map                    // do stuff
The two events are mutually exclusive so you need to take that into account. Also, for many newer people, it's easier to tell them to use equal[i].
__________________
fysiks 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 15:19.


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