[Solved]HudMessage multiple strings + variable problem

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: [Solved]HudMessage multiple strings + variable problem

Re: [Solved]HudMessage multiple strings + variable problem

by Collegia Titanica » Mon Sep 17, 2018 3:35 pm

I see your point.

Re: [Solved]HudMessage multiple strings + variable problem

by Enjay » Mon Sep 17, 2018 12:30 am

Glad you got it sorted but this is a perfect example of why it is important to provide more than a tiny snippet of code. Had it not been for kodi's insight, we could have been guessing for ages. I had tried to figure out the problem myself but without the important information that a font other than the standard smallfont was being used, I was stumped.

Re: HudMessage multiple strings + variable problem

by Collegia Titanica » Sun Sep 16, 2018 7:47 pm

Holy shit! That was the problem ! Only numbers in the current font.I never would have guessed, thanks

Re: HudMessage multiple strings + variable problem

by kodi » Sun Sep 16, 2018 2:05 pm

You're not using INDEXFONT as your font right? Or some other custom one that only has numbers.

[Solved]HudMessage multiple strings + variable problem

by Collegia Titanica » Sun Sep 16, 2018 11:49 am

So I wanted to print text and the variable value like "N Factor: numvalue" but it only prints N, I followed the wiki example, don't see why it only prints the N value but not the text. I could always use 2 prints and coordinate them but I shouldn't have to.

Code: Select all

HudMessage(s:"N Factor: ", d:N ; HUDMSG_PLAIN | HUDMSG_NOTWITHFULLMAP, 0, CR_GRAY, 0.2, 0.3, 0);

Top