[Solved] Hud Msg Problem
im running this funcktion to show the players healt on my server
and what did i wrong? it displays tylaa HP: 10000 ter HP: 10000 Must be Stylaa HP: 10000 Peter HP: 10000 i realy dont know what i did Wrong PHP Code:
|
Re: Hud Msg Problem
formatex() -> format() because you are using szText as a formatting variable.
Read about that here: http://www.amxmodx.org/funcwiki.php?...atex&go=search Also, you don't need an array for health. Finally, don't index PlayerName in the format statement. Just put the variable name. |
Re: Hud Msg Problem
Thanks it works great now
|
Re: [Solved] Hud Msg Problem
And don't create the variables inside the loop (that'll make a variable for each literation), place them before the loop!
Also, I see that you create playername using 33 cells and you're using get_user_name() with 64... make up your mind, but better use charsmax() like so: Code:
new name[32] |
| All times are GMT -4. The time now is 10:26. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.