Another SBARINFO error

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom Developers

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 Reply
User avatar
HellBlade64
Posts: 48
Joined: Tue May 13, 2014 3:00 pm

Another SBARINFO error

Post by HellBlade64 »

Code: Select all

Script error, "hd-ue-hudv2.pk3:sbarinfo" line 22:
Expected integer constant but got identifier 'drawshadow' instead.
I get this error whenever I try to use the SBARINFO line "drawstring" with "weapontag" and adding drawshadow to it.
No example is given on the ZDoom Wiki as to how proper syntax using those two together is supposed to look.

Here is the full line of code:

Code: Select all

drawstring smallfont, gray, weapontag, -5, -80, drawshadow, linebreaks(10);
I'm not sure what integer constant it would be looking for at all.
I have tried different putting the code pieces in different orders but nothing is working.

As with last post I am doing this on Zandronum by the way.
User avatar
HellBlade64
Posts: 48
Joined: Tue May 13, 2014 3:00 pm

Re: Another SBARINFO error

Post by HellBlade64 »

Nevermind, fixed it. Forget this post even exists.
Post Reply

Return to “Scripting”