View Single Post
shehzad1234
BANNED
Join Date: Jan 2016
Location: https://t.me/pump_upp
Old 09-11-2018 , 17:58   Re: [HELP] Cvar Change Message in Colors
Reply With Quote #4

Quote:
Originally Posted by OciXCrom View Post
No, don't replace anything. Simply add #include <cromchat> to the code and you're done. Just add the color symbols in the language file.
PHP Code:
    new cvar_val[64];
    new 
maxpl get_maxplayers();
    for (new 
1<= maxpli++)
    {
        if (
is_user_connected(i) && !is_user_bot(i))
        {
            if (
get_pcvar_flags(pointer) & FCVAR_PROTECTED || equali(arg"rcon_password"))
            {
                
formatex(cvar_valcharsmax(cvar_val), "*** %L ***"i"PROTECTED");
            }
            else
            {
                
copy(cvar_valcharsmax(cvar_val), arg2);
            }
            
CromChat(iidname"%L"i"SET_CVAR_TO"""argcvar_val);
        }
    } 
error
Code:
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2013 ITB CompuPhase, AMX Mod X Team

Error: Argument type mismatch (argument 2) on line 752

1 Error.
Could not locate output file D:\Steam\steamapps\common\Half-Life\cstrike\addons\amxmodx\scripting\admincmd.amx (compile failed).
shehzad1234 is offline
Send a message via ICQ to shehzad1234 Send a message via AIM to shehzad1234 Send a message via Yahoo to shehzad1234