Raised This Month: $32 Target: $400
 8% 

Solved PrintHintTextToAll to make a HUD


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
s0o
New Member
Join Date: Oct 2019
Location: France, Poitiers
Old 10-19-2019 , 16:02   PrintHintTextToAll to make a HUD
Reply With Quote #1

Hello !

I want to do a HUD like this : https://ibb.co/s9ZnznJ (don't care about the red circle, I take the screen from another post)

but I don't know how. Can someone help me please ?

I've already make this (I begin in SourcePawn developpement and I think that a bad code sry :p) :

Spoiler

Last edited by s0o; 10-21-2019 at 12:19.
s0o is offline
Chrissy
Member
Join Date: May 2013
Old 10-19-2019 , 18:29   Re: PrintHintTextToAll to make a HUD
Reply With Quote #2

Use "\n" it means next line.

Code:
				char sHintText[128];

				FormatEx(sHintText, sizeof(sHintText), "<font face='Stratum2'><font size='30'>  Current Spell</font></font>\n");
				FormatEx(sHintText, sizeof(sHintText), "%s<font size='20'>   %s</font></font>", sHintText, sCurrentSpell);
				
				PrintHintText(i, sHintText);
Chrissy is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 10-21-2019 , 02:45   Re: PrintHintTextToAll to make a HUD
Reply With Quote #3

I believe you should be using Format instead of FormatEx if you're reusing output buffer as input parameter.
__________________
hleV is offline
s0o
New Member
Join Date: Oct 2019
Location: France, Poitiers
Old 10-21-2019 , 12:20   Re: PrintHintTextToAll to make a HUD
Reply With Quote #4

Thanks guys ! I just create a Timer and function for the PrintHintTextToAll and that works xd
s0o 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 20:56.


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