AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Hudmessage Help. (https://forums.alliedmods.net/showthread.php?t=26703)

GHW_Chronic 04-07-2006 18:23

Hudmessage Help.
 
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?

organizedKaoS 04-07-2006 18:30

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.

GHW_Chronic 04-07-2006 18:38

WOW. I thought I did do that, mustve overlooking the [len]. I feel retarted. Thanks for pointing out my stupidity.


All times are GMT -4. The time now is 16:37.

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