AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   error 017: undefined symbol "client_print_color" (https://forums.alliedmods.net/showthread.php?t=329814)

giumbalau 01-09-2021 08:16

error 017: undefined symbol "client_print_color"
 
PHP Code:

public ShowCurrentTop(id)
{
    if(!
SayHot)
    {
        
client_print_color(id,print_team_red,"%L %L",id,"STATS_TAG"id,"DISABLED_MSG")
        
        return 
PLUGIN_HANDLED
    
}
    
    new 
players[MAX_PLAYERS],pnum
    get_players
(players,pnum)
    
    new 
current_top[MAX_PLAYERS][2]
    
    for(new 
i,stats[8],bh[8] ; pnum i++)
    {
        
current_top[i][0] = players[i]
        
        
#if !defined CSSTATSX_SQL
            
current_top[i][1] = get_user_stats(players[i],stats,bh)
        
#else
            
current_top[i][1] = get_user_stats_sql(players[i],stats,bh)
        
#endif
    



iceeedr 01-09-2021 08:51

Re: error 017: undefined symbol "client_print_color"
 
To use client_print_color you need amx 1.9+

giumbalau 01-09-2021 10:00

Re: error 017: undefined symbol "client_print_color"
 
Quote:

Originally Posted by iceeedr (Post 2731927)
To use client_print_color you need amx 1.9+

Any other method ? .... to color ?
EDIT : I don't care about the color i just want to solve the error...please

Napoleon_be 01-09-2021 11:52

Re: error 017: undefined symbol "client_print_color"
 
PHP Code:

client_print_color(id,print_team_red,"%L %L",id,"STATS_TAG"id,"DISABLED_MSG"

PHP Code:

client_print(idprint_chat"%L %L"id"STATS_TAG"id"DISABLED_MSG"


OciXCrom 01-09-2021 14:41

Re: error 017: undefined symbol "client_print_color"
 
Simply download cromchat.inc and add #include <cromchat> in the code.

giumbalau 01-10-2021 04:12

Re: error 017: undefined symbol "client_print_color"
 
Solved thanks


All times are GMT -4. The time now is 16:53.

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