colorchat embedded
1 Attachment(s)
I'm trying to write a plugin with colorchat that you don't have to compile locally.
I tried writing it myself, but to no avail. Then i tried C/P and the same thing happens. When i do client_print_color(0 it crashes the server saying "Server Shutting down." I looked in the error logs and there was nothing. My assumption is that its one of the messages being sent improperly and resulting in the crash. My question toyou....what is the fix? Other than "just use the include" P.S. As you can tell from my code I wish to print a red message if stated from a terrorist (this includes CT reader) - this functionality is why i need the colorchat, and not simply use a SayText message; which would print Blue to CT and Red to T when using the team color code. Attached is what i have so far. |
Re: colorchat embedded
All you have to do is copy the contents of the .inc file into the .sma in place of the #include statement. It's that simple.
According to your comment, you edited Connors code. Don't. |
Re: colorchat embedded
I first attempted to edit connor's code. Then i copy and pasted. Now it is not working.
Both had similar outcomes when trying to print to everyone. |
Re: colorchat embedded
Quote:
|
Re: colorchat embedded
Quote:
Quote:
|
Re: colorchat embedded
Quote:
Only stocks of include files are actually added to your amxx on compile from sma. Otherwise it is just a library of how to use natives in other plugins. But nice try.... Quote:
I try again... |
Re: colorchat embedded
Quote:
|
Re: colorchat embedded
Quote:
All functions what you use inside of inc will added into your sma. If you add example amxmodx.inc then all of it inside will go to your sma. natives like you see are only functions names inside of the inc, they are actually based on script who created this native, native functions code stay in plugin who created the native. also you can copy your inside of sma to inc file and just write inside of sma #include thatinc and its working fine. If you see that user in allied modders is newbie then that does not meant that he cant script or dont understand anything. @fysiks my inglish is not so well, im sorry for misunderstanding, i still dont get it. Edit: fysiks was faster. |
Re: colorchat embedded
I always love to get chewed out for being incorrect....
|
Re: colorchat embedded
PHP Code:
Did you meant something like that ? PHP Code:
Dunno if <%1> works for macros, anyway it would be better to name it to something else than 'id' |
| All times are GMT -4. The time now is 08:16. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.