Raised This Month: $ Target: $400
 0% 

[SOLVED] HUD message via Format


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Depresie
Veteran Member
Join Date: Nov 2013
Old 10-15-2015 , 08:21   [SOLVED] HUD message via Format
Reply With Quote #1

How the heck do i add a line displaying the value of a cvar at the bottom of the hud message? or in betwen the [Hud Info] line and the player's names ?

I tried and tried and i always end up with the value displayed in the right of every player's name or worst with values from other hud message...

PHP Code:
    get_data_index(idPlayers)
    for(new 
ig_MyData[id][Members]; i++) 
    {
        
        
user Players[i]
        
        if(
Count)
            
add(MyMsgcharsmax(MyMsg), "^n")
        
        
format(MyMsgcharsmax(MyMsg), "%s%s"strlen(MyMsg) ? MyMsg "[Info HUD]^n"g_MyData[user][UserName])
        
Count++
    }
        
    
set_hudmessage(2552552550.020.2006.01.0);
    
show_hudmessage(idMyMsg

Last edited by Depresie; 10-17-2015 at 12:21.
Depresie is offline
 



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 22:05.


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