Raised This Month: $51 Target: $400
 12% 

Compile error


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
A2Z
Zero Posts
Join Date: Apr 2016
Old 04-14-2016 , 11:09   Compile error
Reply With Quote #1

When i try to compile the .sma file from LevelMod 6.0 (https://forums.alliedmods.net/showthread.php?t=235101) i got this error:

"//AMXXPC compile.exe
// by the AMX Mod X Dev Team


//// levelmod.sma
//
//...addons\amxmodx\scripting\include\chatcolor .inc(37) : error 021: symbol already defined: "client_print_color"
// ...addons\amxmodx\scripting\levelmod.sma(535) : warning 233: symbol "client_disconnect" is marked as deprecated: Use client_disconnected() instead.
//
// ...addons\amxmodx\scripting\levelmod.sma(600) : warning 233: symbol "strbreak" is marked as deprecated: Use argbreak() instead
//
// ...addons\amxmodx\scripting\levelmod.sma(603) : warning 233: symbol "strbreak" is marked as deprecated: Use argbreak() instead
//
//
// 1 Error.
// ...addons\amxmodx\scripting\compiled\levelmod .amx (compile failed).
//
// Compilation Time: 0,58 sec
// ----------------------------------------

Press enter to exit ..."

I think the problem is with colorchat ( https://forums.alliedmods.net/showthread.php?t=94960 ) but i've installed everything correctly. Any ideas of how to fix this?
Attached Files
File Type: sma Get Plugin or Get Source (colorchat.sma - 737 views - 6.1 KB)
File Type: inc chatcolor.inc (1.9 KB, 321 views)
A2Z is offline
fcastro16
Member
Join Date: Mar 2009
Old 04-14-2016 , 17:52   Re: Compile error
Reply With Quote #2

Scripting questions don't belong here.

Are you compiling with amx 1.8.3 ? If so,
Don't include chatcolor, client_print_color is already defined within amx.
Replace strbreak with argbreak.

Last edited by fcastro16; 04-14-2016 at 17:52.
fcastro16 is offline
A2Z
Zero Posts
Join Date: Apr 2016
Old 04-14-2016 , 19:11   Re: Compile error
Reply With Quote #3

Quote:
Originally Posted by fcastro16 View Post
Scripting questions don't belong here.

Are you compiling with amx 1.8.3 ? If so,
Don't include chatcolor, client_print_color is already defined within amx.
Replace strbreak with argbreak.
Yes im using AMX 1.8.3. How do i replace strbreak with agrbreak, never heard about it.
A2Z is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 04-14-2016 , 19:50   Re: Compile error
Reply With Quote #4

Quote:
Originally Posted by A2Z View Post
How do i replace strbreak with agrbreak, never heard about it.
You're joking right?
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
A2Z
Zero Posts
Join Date: Apr 2016
Old 04-14-2016 , 19:57   Re: Compile error
Reply With Quote #5

Quote:
Originally Posted by wickedd View Post
You're joking right?
Im trying to learn the basics... There is no tut's out there
A2Z is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 04-14-2016 , 20:17   Re: Compile error
Reply With Quote #6

PHP Code:
strbreak(szBuffer,...... 


PHP Code:
argbreak(szBuffer,...... 
That's all there is to it.
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.

Last edited by wickedd; 04-14-2016 at 20:19.
wickedd is offline
A2Z
Zero Posts
Join Date: Apr 2016
Old 04-15-2016 , 13:51   Re: Compile error
Reply With Quote #7

Quote:
Originally Posted by wickedd View Post
PHP Code:
strbreak(szBuffer,...... 


PHP Code:
argbreak(szBuffer,...... 
That's all there is to it.
Thanks
A2Z is offline
Reply



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 11:22.


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