Raised This Month: $ Target: $400
 0% 

Someone knows how to...


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-26-2010 , 18:28   Re: Someone knows how to...
Reply With Quote #4

What in the world is this???

Code:
equali("rr", cmd[cmd[0] == '!' || cmd[0] == '/' || cmd[0] == '.'])
EDIT:
I figured it out. This bool/int conversion assumption is annoying sometimes. It will also return true if you say "rr".

You should probably change it to:

Code:
equali("rr", cmd[!!(cmd[0] == '!' || cmd[0] == '/' || cmd[0] == '.')])
__________________

Last edited by fysiks; 05-26-2010 at 18:33.
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 05:23.


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