Raised This Month: $ Target: $400
 0% 

enable/disable whole plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 03-12-2017 , 09:53   Re: enable/disable whole plugin
Reply With Quote #7

Quote:
Originally Posted by Craxor View Post
PHP Code:
if( get_pcvar_numg_Cvar ) )
{
      
// If the cvar have a pozitive value .. ( a pozitive value means bigger than 0, so 1 , 2 , 3 .. etc.
}
else
{
     
// If the cvar have a negative value ...

No, if(expression) checks if expression is non-zero. Only 0 is false, everything else, including negative values, is true.

Last edited by klippy; 03-12-2017 at 09:54.
klippy 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 17:54.


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