Raised This Month: $ Target: $400
 0% 

HUD Display "Not Showing my Values"


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
thebro
Senior Member
Join Date: Jan 2011
Old 12-25-2013 , 02:56   Re: HUD Display "Not Showing my Values"
Reply With Quote #3

Quote:
Originally Posted by Kia View Post
You can't simply pass id in the function. Use get_players and go through all players and show them each the HUD.
Is this correct?
Code:
public p_infoz()
{
    new Players[32]
    new playerCount, i, player 
    get_players(Players, playerCount, "a")
    for (i=0; i<playerCount; i++)
    player = Players[i] 
    set_hudmessage(30, 100, 255, -1.0, 0.87, 0, _, 2.0, _, _, -1)
    ShowSyncHudMsg(player, g_hudmsg8, "^n^n[Points] %i     [XP] %i",Cash[player],XP[player])
}
I tested this and it reads the Values now!

Last edited by thebro; 12-25-2013 at 02:56.
thebro 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 20:22.


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