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

Solved error in .sma with TEAM_COLOR


Post New Thread Reply   
 
Thread Tools Display Modes
redivcram
Veteran Member
Join Date: Jul 2014
Location: Serbia
Old 02-14-2021 , 12:47   Re: error in .sma with TEAM_COLOR
Reply With Quote #21

Does HLDS close? If not, there should be output in the console.
redivcram is offline
Awesomerp
Member
Join Date: Jan 2021
Old 02-14-2021 , 13:15   Re: error in .sma with TEAM_COLOR
Reply With Quote #22

If you mean the cmd tab of the server, it auto closes also
start hlds -game cstrike -console +maxplayers 12 +map de_dust2 (i have put this in the hlds)

Last edited by Awesomerp; 02-14-2021 at 13:39.
Awesomerp is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 02-14-2021 , 13:40   Re: error in .sma with TEAM_COLOR
Reply With Quote #23

Quote:
Originally Posted by Awesomerp View Post
I tried compiling the file on 1.9 and I got the message: fatal error 100: cannot read from file: "dhudmessage"
am I missing this include?
Which means you didn't compile on 1.9 because 1.9 already has dhudmessage included.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
redivcram
Veteran Member
Join Date: Jul 2014
Location: Serbia
Old 02-14-2021 , 14:13   Re: error in .sma with TEAM_COLOR
Reply With Quote #24

Quote:
Originally Posted by OciXCrom View Post
Which means you didn't compile on 1.9 because 1.9 already has dhudmessage included.
Now I feel stupid. :V
redivcram is offline
Awesomerp
Member
Join Date: Jan 2021
Old 02-14-2021 , 14:17   Re: error in .sma with TEAM_COLOR
Reply With Quote #25

Then i dont know what I am doing :_
Is there still a way to see whats wrong?
Downloading latest amxx and compiling ?
Awesomerp is offline
redivcram
Veteran Member
Join Date: Jul 2014
Location: Serbia
Old 02-14-2021 , 14:42   Re: error in .sma with TEAM_COLOR
Reply With Quote #26

When you download AMX Mod X, you get its own local compiler along, located in addons/amxmodx/scripting as amxxpc.exe. I assume you're using a web compiler?
redivcram is offline
Awesomerp
Member
Join Date: Jan 2021
Old 02-14-2021 , 15:04   Re: error in .sma with TEAM_COLOR
Reply With Quote #27

When I was using the web compiler it always failed, but when i have put in the hud and colorchat includes and used compiler from app the compile suceeded. But now I dont know the problem cause the server autocloses
And yes I just noticed since I am trying to run the plugin on 2 versions they are 1.8.2 and 1.8.3 ( not 1.9 sorry)

Last edited by Awesomerp; 02-14-2021 at 15:23.
Awesomerp is offline
redivcram
Veteran Member
Join Date: Jul 2014
Location: Serbia
Old 02-14-2021 , 15:49   Re: error in .sma with TEAM_COLOR
Reply With Quote #28

Run HLDS in GUI mode and check the console tab. *Assuming that's even possible, never even used HLDS windowed, only in cmd*

Last edited by redivcram; 02-14-2021 at 15:50.
redivcram is offline
Awesomerp
Member
Join Date: Jan 2021
Old 02-14-2021 , 16:17   Re: error in .sma with TEAM_COLOR
Reply With Quote #29

Now I tried 1.10 compiler got new error messages
cstrike\addons\amxmodx\scripting\hns1.sma(875 ) : warning 213: tag mismatch
cstrike\addons\amxmodx\scripting\hns1.sma(312 9) : error 040: duplicate "case" label (value 1)
cstrike\addons\amxmodx\scripting\hns1.sma(349 0) : warning 213: tag mismatch
cstrike\addons\amxmodx\scripting\hns1.sma(349 1) : error 040: duplicate "case" label (value 1)
cstrike\addons\amxmodx\scripting\hns1.sma(419 5) : error 040: duplicate "case" label (value 1)
cstrike\addons\amxmodx\scripting\hns1.sma(445 4) : warning 213: tag mismatch
cstrike\addons\amxmodx\scripting\hns1.sma(446 5) : warning 225: unreachable code
cstrike\addons\amxmodx\scripting\hns1.sma(476 6) : warning 213: tag mismatch
cstrike\addons\amxmodx\scripting\hns1.sma(508 5) : warning 213: tag mismatch

Last edited by Awesomerp; 02-14-2021 at 16:18.
Awesomerp is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 02-14-2021 , 16:31   Re: error in .sma with TEAM_COLOR
Reply With Quote #30

Regarding all the duplicate cases, it's because you are redefining/overwriting the variable "NORMAL" (see lines 74 and 356). In other words, you are using the same variable name for two different purposes. And it looks like all the tag mismatches are also because of this.

Unreachable code means that the code on the specified line will never be executed, ever. Whether or not this affects how the plugin works depends on how you need that particular function to behave. You should
__________________

Last edited by fysiks; 02-14-2021 at 16:31.
fysiks 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 06:06.


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