Raised This Month: $ Target: $400
 0% 

Hudmessage Help.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 04-07-2006 , 18:23   Hudmessage Help.
Reply With Quote #1

Code:
new len = format(hudtext,399," ^n") len += format(hudtext,399-len,"1. GHW_Chronic ^n") len += format(hudtext,399-len,"2. GHW_Chronic ^n") len += format(hudtext,399-len,"3. GHW_Chronic ^n") len += format(hudtext,399-len,"4. GHW_Chronic ^n")

I want this to print out like so:
Code:
[blank line]
1. GHW_Chronic
2. GHW_Chronic
3. GHW_Chronic
4. GHW_Chronic
But instead it demands on printing out:
Code:
4. GHW_Chronic
What am I doing wrong?
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
organizedKaoS
Senior Member
Join Date: Feb 2006
Old 04-07-2006 , 18:30  
Reply With Quote #2

Try:
Code:
new hudtext[400], len      len = format(hudtext,399," ^n")      len += format(hudtext[len],399-len,"1. GHW_Chronic ^n")      len += format(hudtext[len],399-len,"2. GHW_Chronic ^n")      len += format(hudtext[len],399-len,"3. GHW_Chronic ^n")      len += format(hudtext[len],399-len,"4. GHW_Chronic ^n")
I use this exact format for one of my plugins. Hope it helped.
organizedKaoS is offline
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 04-07-2006 , 18:38  
Reply With Quote #3

WOW. I thought I did do that, mustve overlooking the [len]. I feel retarted. Thanks for pointing out my stupidity.
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
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 16:37.


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