Raised This Month: $ Target: $400
 0% 

Solved hud to dhud change


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
luciaus18
Senior Member
Join Date: Dec 2014
Old 08-26-2022 , 14:10   hud to dhud change
Reply With Quote #1

Hi! Someone can teach me how to change these messages from HUD to DHUD, please?

Code:
	Line 1037: 					set_hudmessage(255, 0, 0, 0.03, 0.865, 0, 0.0, 0.0, 0.0, 4.0,HUD_CHANNEL)
	Line 1037: 					set_hudmessage(255, 0, 0, 0.03, 0.865, 0, 0.0, 0.0, 0.0, 4.0,HUD_CHANNEL)
	Line 1039: 					set_hudmessage(27, 188, 155, 0.03, 0.865, 0, 0.0, 0.0, 0.0, 4.0,HUD_CHANNEL)
	Line 1039: 					set_hudmessage(27, 188, 155, 0.03, 0.865, 0, 0.0, 0.0, 0.0, 4.0,HUD_CHANNEL)
	Line 1041: 				show_hudmessage(i,Message)
	Line 1087: 					set_hudmessage(255, 0, 0, 0.03, 0.865, 0, 0.0, 0.0, 0.0, 4.0,HUD_CHANNEL)
	Line 1087: 					set_hudmessage(255, 0, 0, 0.03, 0.865, 0, 0.0, 0.0, 0.0, 4.0,HUD_CHANNEL)
	Line 1089: 					set_hudmessage(27, 188, 155, 0.03, 0.865, 0, 0.0, 0.0, 0.0, 4.0,HUD_CHANNEL)
	Line 1089: 					set_hudmessage(27, 188, 155, 0.03, 0.865, 0, 0.0, 0.0, 0.0, 4.0,HUD_CHANNEL)
	Line 1091: 				show_hudmessage(i,Message)
	Line 1485: 	set_hudmessage(27, 188, 155, 0.03, 0.87, 0, 0.0, 0.0, 0.0, 4.0,HUD_CHANNEL)
	Line 1485: 	set_hudmessage(27, 188, 155, 0.03, 0.87, 0, 0.0, 0.0, 0.0, 4.0,HUD_CHANNEL)
	Line 1486: 	show_hudmessage(id," ") // Clears the hudmessage
	Line 1486: 	show_hudmessage(id," ") // Clears the hudmessage
	Line 1851: 		HudMessage2(id,Message)
	Line 1869: 		set_hudmessage(27, 188, 155, 0.03, 0.865, 0, 0.0, 0.0, 0.0, 4.0,HUD_CHANNEL) 		// We now update the hudmessage on his screen
	Line 1869: 		set_hudmessage(27, 188, 155, 0.03, 0.865, 0, 0.0, 0.0, 0.0, 4.0,HUD_CHANNEL) 		// We now update the hudmessage on his screen
	Line 1869: 		set_hudmessage(27, 188, 155, 0.03, 0.865, 0, 0.0, 0.0, 0.0, 4.0,HUD_CHANNEL) 		// We now update the hudmessage on his screen
	Line 1870: 		show_hudmessage(id,Message)

Last edited by luciaus18; 08-27-2022 at 05:16.
luciaus18 is offline
menkisa
Junior Member
Join Date: Sep 2011
Old 08-26-2022 , 17:37   Re: hud to dhud change
Reply With Quote #2

Change all lines from
Code:
show_hudmessage
and
Code:
set_hudmessage
to

Code:
show_dhudmessage
and
Code:
set_dhudmessage
and delete the last argument of set_dhudmessage, meaning HUD_CHANNEL
menkisa is offline
luciaus18
Senior Member
Join Date: Dec 2014
Old 08-26-2022 , 18:38   Re: hud to dhud change
Reply With Quote #3

I don't have to do anything to these lines?

Code:
Line 1851: 		HudMessage2(id,Message)
		// We now update the hudmessage on his screen
Line 1870: 		show_dhudmessage(id,Message)
I get these errors when i want to compile:
Code:
//// runemod_base.sma
// cstrike\addons\amxmodx\Compile\scripting\runemod_base.sma(1037) : error 017: undefined symbol "set_dhudmessage"
// cstrike\addons\amxmodx\Compile\scripting\runemod_base.sma(1039) : error 017: undefined symbol "set_dhudmessage"
// cstrike\addons\amxmodx\Compile\scripting\runemod_base.sma(1041) : error 017: undefined symbol "show_dhudmessage"
// cstrike\addons\amxmodx\Compile\scripting\runemod_base.sma(1087) : error 017: undefined symbol "set_dhudmessage"
// cstrike\addons\amxmodx\Compile\scripting\runemod_base.sma(1089) : error 017: undefined symbol "set_dhudmessage"
// cstrike\addons\amxmodx\Compile\scripting\runemod_base.sma(1091) : error 017: undefined symbol "show_dhudmessage"
// cstrike\addons\amxmodx\Compile\scripting\runemod_base.sma(1485) : error 017: undefined symbol "set_dhudmessage"
// cstrike\addons\amxmodx\Compile\scripting\runemod_base.sma(1486) : error 017: undefined symbol "show_dhudmessage"
// cstrike\addons\amxmodx\Compile\scripting\runemod_base.sma(1869) : error 017: undefined symbol "set_dhudmessage"
// cstrike\addons\amxmodx\Compile\scripting\runemod_base.sma(1870) : error 017: undefined symbol "show_dhudmessage"
//
// 10 Errors.
// Could not locate output file compiled\runemod_base.amx (compile failed).

Last edited by luciaus18; 08-26-2022 at 18:48.
luciaus18 is offline
sPed
Member
Join Date: May 2017
Location: Algeria
Old 08-26-2022 , 19:17   Re: hud to dhud change
Reply With Quote #4

you need to add dhudmessage.inc to your include folder
download it from here https://forums.alliedmods.net/showthread.php?t=149210
sPed is offline
luciaus18
Senior Member
Join Date: Dec 2014
Old 08-27-2022 , 03:55   Re: hud to dhud change
Reply With Quote #5

I had it but forgot to add the line. Thx!
luciaus18 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 18:49.


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