Raised This Month: $ Target: $400
 0% 

CVARS?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
<VeCo>
Veteran Member
Join Date: Jul 2009
Location: Bulgaria
Old 05-18-2012 , 04:42   Re: CVARS?
Reply With Quote #5

PHP Code:
 if (!(cvar == 1)) 
This should be:

PHP Code:
if(get_pcvar_num(cvar) != 1
That means if the value of the CVAR is not equal to 1. If you want to specify it only for 0 you can make it like this:

PHP Code:
if(get_pcvar_num(cvar) == 0
Or:

PHP Code:
if(!get_pcvar_num(cvar)) 
__________________
<VeCo> 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 00:29.


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