Raised This Month: $51 Target: $400
 12% 

[HELP] ERROR: function prototypes do not match


Post New Thread Reply   
 
Thread Tools Display Modes
zwolofmeister
Member
Join Date: Aug 2018
Old 07-11-2019 , 17:22   Re: [HELP] ERROR: function prototypes do not match
Reply With Quote #11

if you want to hide your tag you can create a global boolean, like bool g_bTag[MAXPLAYERS+1]; ooor, you can use an int to do the same thing by doing this:

g_iTag[client] = g_iTag[client] == 1 ? 0 : 1;

then just,

Quote:
if(g_iTag[client] = 1 && CheckCommandAccess(iClient, "chattag", ADMFLAG_ROOT))
{
CODE HERE
}
else if(g_iTag[client] = 1 && CheckCommandAccess(iClient, "chattag", ADMFLAG_RCON)
{
CODE HERE
}
then you can just add an else statement that removes your tag, and also add cookies so it saves your tag choice

Last edited by zwolofmeister; 07-11-2019 at 17:23.
zwolofmeister is offline
Reply



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 07:28.


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