Raised This Month: $12 Target: $400
 3% 

[SOLVED] Need help finding crash


Post New Thread Reply   
 
Thread Tools Display Modes
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 08-30-2011 , 09:58   Re: Need help finding crash
Reply With Quote #11

To avoid the bool clamp, you could just change your comparison.
PHP Code:
if ( g_bGodmodeState != ( str_to_numszArg ) != ) ) 
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 08-30-2011 , 10:25   Re: Need help finding crash
Reply With Quote #12

The condition can be checked multiple ways. Either way works, the scripter can choose whichever he prefers to look at since either way is probably equal on the CPU end. IMO the !!Var looks a bit cleaner than a condition enclosed in parenthesis.
__________________
Bugsy is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 08-30-2011 , 11:40   Re: Need help finding crash
Reply With Quote #13

Thanks guys.
I understand how it works now.
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
Reply



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 09:42.


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