View Single Post
Leonardo
Veteran Member
Join Date: Feb 2010
Location: 90's
Old 04-03-2011 , 02:26   Re: Hide Cvar Chat Print
Reply With Quote #2

PHP Code:
         new Handle:cvar FindConVar(ncvars[i]);
         if(
cvar==INVALID_HANDLE) continue; // ignore if ConVar isn't exists 
also, it's a veeeeeeery bad idea to create variables (using 'new') in cycles

also
PHP Code:
new cvarc ExplodeString(cvars", "ncvars1664); 
must be
PHP Code:
new cvarc ExplodeString(cvars", "ncvars1563); 
or
PHP Code:
new cvarc ExplodeString(cvars", "ncvarssizeof(ncvars), sizeof(ncvars[])); 

Last edited by Leonardo; 04-03-2011 at 02:28.
Leonardo is offline