Raised This Month: $ Target: $400
 0% 

Loop Players HUD Message


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
ichiban
Member
Join Date: Dec 2008
Old 01-06-2011 , 06:00   Loop Players HUD Message
Reply With Quote #1

Hi,

I am unsure of how to loop players in my HUD message

PHP Code:
/*
    Example Output:
    Players:
    Name
    Name
    Name
    Name
*/

public show_players(id)
{
    new 
szPlayers[200]
    new 
maxplayers get_maxplayers()
    
szPlayers[200] = "Players:^n"
    
    
for (new 1<= maxplayersi++)
    {
        new 
szName[32]
        
get_user_name(iszName31)
        
        
//szPlayers += ("%s^n", szName)
    
}
    
    
set_hudmessage(25500, -1.00.01)
    
show_hudmessage(idszPlayers)

ichiban is offline
 


Thread Tools
Display Modes

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 02:09.


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