Raised This Month: $ Target: $400
 0% 

error 017: undefined symbol "ChatColor"


Post New Thread Reply   
 
Thread Tools Display Modes
bigdaddy424
Senior Member
Join Date: Oct 2021
Location: Jupiter
Old 04-16-2024 , 20:18   Re: error 017: undefined symbol "ChatColor"
Reply With Quote #11

Quote:
Originally Posted by Napoleon_be View Post
I always used to use the colorchat include with the ColorChat() function being called. Made a habbit out of it and decided to never switch since it did the job as intended.
can relate, but posting code on forum might become a hassle when you have to include a library file that has functions already built in
__________________
bigdaddy424 is offline
fjlep
Junior Member
Join Date: Apr 2024
Old 04-16-2024 , 20:34   Re: error 017: undefined symbol "ChatColor"
Reply With Quote #12

Quote:
Originally Posted by Napoleon_be View Post
As Fysiks already mentioned
I have read it but I don't have any idea, I don't know anything about coding other than compiling, can you help me with that please =D?
fjlep is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 04-16-2024 , 20:39   Re: error 017: undefined symbol "ChatColor"
Reply With Quote #13

https://amxx-bg.info/api/colorchat

Start over. Save as colorchat.inc.
__________________
DJEarthQuake is offline
fjlep
Junior Member
Join Date: Apr 2024
Old 04-16-2024 , 21:00   Re: error 017: undefined symbol "ChatColor"
Reply With Quote #14

Quote:
Originally Posted by DJEarthQuake View Post
https://amxx-bg.info/api/colorchat

Start over. Save as colorchat.inc.
but in the code it says ChatColor and the one you gave me is colorchat it doesn't match, I know you are trying to help me =(
fjlep is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 04-16-2024 , 23:08   Re: error 017: undefined symbol "ChatColor"
Reply With Quote #15

No need to download some random files. It looks like you should be able to simply replace:

Code:
ChatColor(0, GREY
with

Code:
client_print_color(0, print_team_grey
Similarly with the one that uses "id" instead of "0". Also, make sure to remove:

Code:
#include <colorchat>
__________________
fysiks is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 04-17-2024 , 07:58   Re: error 017: undefined symbol "ChatColor"
Reply With Quote #16

Quote:
Originally Posted by fjlep View Post
but in the code it says ChatColor and the one you gave me is colorchat it doesn't match, I know you are trying to help me =(
Add to original script.
Code:
#define ChatColor ColorChat
That will make it work until you are ready to update it to the newer Amxx native.
__________________

Last edited by DJEarthQuake; 04-17-2024 at 09:36.
DJEarthQuake is offline
mlibre
Veteran Member
Join Date: Nov 2015
Location: return PLUGIN_CONTINUE
Old 04-17-2024 , 19:17   Re: error 017: undefined symbol "ChatColor"
Reply With Quote #17

mentioned compiling at 190, so you already have the native
__________________
mlibre is offline
fjlep
Junior Member
Join Date: Apr 2024
Old 04-17-2024 , 22:02   Re: error 017: undefined symbol "ChatColor"
Reply With Quote #18

Quote:
Originally Posted by fysiks View Post
No need to download some random files. It looks like you should be able to simply replace:

Code:
ChatColor(0, GREY
with

Code:
client_print_color(0, print_team_grey
Similarly with the one that uses "id" instead of "0". Also, make sure to remove:

Code:
#include <colorchat>
thank you I was able to do it =D
fjlep is offline
Reply


Thread Tools
Display Modes

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 09:06.


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