Raised This Month: $ Target: $400
 0% 

rcon_hidden


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-06-2017 , 23:56   Re: rcon_hidden
Reply With Quote #7

Looks to me that there is a bigger issue here. What happens if the cvar gets changed after plugin_cfg() and before plugin_end()? Probably nothing major but that doesn't make it good code. You should check to see if the array is valid, if it's valid, destroy it instead of relying on the cvar.

I'm guessing you can simply check if(g_a_IP) instead of checking the cvar.
__________________
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 10:03.


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