Raised This Month: $ Target: $400
 0% 

How to add?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
dFF
sıɹɹoɥɔ ʞɔnu
Join Date: Oct 2009
Old 06-19-2012 , 17:31   Re: How to add?
Reply With Quote #2

PHP Code:
public Players_Menu(id)
{
    new 
menu menu_create("\rSelect the Player:""menu_handler");

    new 
players[32], pnumtempid;
    new 
szBuffer[129], szName[32], szTempid[10];
    
get_players(playerspnum);

    for( new 
ii<pnumi++ )
    {
        
tempid players[i];

        
get_user_name(tempidszNamecharsmax(szName));
        
num_to_str(tempidszTempidcharsmax(szTempid));
    
        
formatex(szBuffercharsmax(szBuffer), "\w%s %s"szNameg_is_logged[tempid] == true "\r[Logged In]" "\r[Not Logged]")

        
menu_additem(menuszBufferszTempid0); // Here, how to add??   g_is_logged[tempid] == true ? "\r[Logged In]" : "\r[Not Logged]")
        // Example: 1. Player One [Logged In]
             // 2. Player Two [Logged In]
            // 3. Player Three [Not Logged]
    
}
    
menu_display(idmenu0);

dFF 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 06:09.


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