Raised This Month: $ Target: $400
 0% 

If cvar is enabled, hide /custom command


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
MihailoZ
Member
Join Date: Aug 2013
Old 09-14-2019 , 16:13   If cvar is enabled, hide /custom command
Reply With Quote #1

Hello,

I am creating a plugin with /custom command with cvars.

I created a cvar that can hide or display /custom command but I always get an error:

Warning: Function should return a value on line 65.


What I want to do is:

IF cvar is enabled, hide /custom command and do the action.
IF cvar is disabled, show /custom command and do the action.


Even with a warning, my plugin works. But I don't want it to display any warning.


Thank you.
__________________
mhvtnns
MihailoZ is offline
 


Thread Tools
Display Modes

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:25.


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