Raised This Month: $ Target: $400
 0% 

ColorChats bugs


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Ace67
Senior Member
Join Date: Sep 2020
Location: France
Old 11-03-2020 , 15:26   ColorChats bugs
Reply With Quote #1

When i want compile i have error like
//// Host_Say.sma
// C:\Program Files (x86)\Steam\steamapps\common\Half-Life\cstrike\addons\amxmodx\scripting\Host_Sa y.sma(33) : error 017: undefined symbol "client_print_color"



PHP Code:
#include < amxmodx >

#pragma semicolon 1

#define PLUGIN ""
#define VERSION "0.0.1"

#define cm(%0)    ( sizeof(%0) - 1 )

public plugin_init()
{
    
register_pluginPLUGINVERSION"ConnorMcLeod" );

    
register_clcmd("say""Host_Say"0);
    
register_clcmd("say_team""Host_Say"1);
}

public 
Host_Say(id)
{
    static 
said[190];
    
read_args(saidcharsmax(said));
    
remove_quotes(said);

    if( !
said[0] || containi(said"%s%s") != -)
    {
        return 
PLUGIN_HANDLED;
    }

    new 
name[32];
    
get_user_name(idnamecharsmax(name));
    new 
team get_user_team(id);

    
client_print_color(0id"%s^4[%s] ^3%s^1: %s",
                                                    
is_user_alive(id) ? "" "^1*DEAD* "
                                                        
team == "ZOMBIE" random(2) ? "HERO" "HUMAN",
                                                                
name,
                                                                        
said);

    return 
PLUGIN_HANDLED_MAIN// so chat cmds gonna work.


Last edited by Ace67; 11-03-2020 at 15:30.
Ace67 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 14:09.


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