Raised This Month: $ Target: $400
 0% 

How to add comma ?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Nano x
Member
Join Date: Feb 2014
Location: Lebanon, beirut
Old 11-24-2015 , 11:42   Re: How to add comma ?
Reply With Quote #16

hey in need more help please how to add comma here
PHP Code:
// Zombie Class Menu
public show_menu_zclass(id)
{
    
// Player disconnected
    
if (!g_isconnected[id])
        return;
    
    
// Bots pick their zombie class randomly
    
if (g_isbot[id])
    {
        
g_zombieclassnext[id] = random_num(0g_zclass_i 1)
        return;
    }
    
    static 
menuidmenu[128], class, buffer[32], buffer2[32]
    
    
// Title
    
formatex(menucharsmax(menu), "%L\r"id"MENU_ZCLASS_TITLE")
    
menuid menu_create(menu"menu_zclass")
    
    
// Class List
    
for (class = 0; class < g_zclass_i; class++)
    {
        
// Retrieve name and info
        
ArrayGetString(g_zclass_name, class, buffercharsmax(buffer))
        
ArrayGetString(g_zclass_info, class, buffer2charsmax(buffer2))
        
        
// Add to menu
        
if (class == g_zombieclassnext[id])
            
formatex(menucharsmax(menu), "\d%s %s"bufferbuffer2)
        else
            
formatex(menucharsmax(menu), "%s \y%s"bufferbuffer2)
        
        
buffer[0] = class
        
buffer[1] = 0
        menu_additem
(menuidmenubuffer)
    }
    
    
// Back - Next - Exit
    
formatex(menucharsmax(menu), "%L"id"MENU_BACK")
    
menu_setprop(menuidMPROP_BACKNAMEmenu)
    
formatex(menucharsmax(menu), "%L"id"MENU_NEXT")
    
menu_setprop(menuidMPROP_NEXTNAMEmenu)
    
formatex(menucharsmax(menu), "%L"id"MENU_EXIT")
    
menu_setprop(menuidMPROP_EXITNAMEmenu)
    
    
menu_display(idmenuid)

and here
PHP Code:
// Show the notice
                 
set_hudmessage(red50blue, -1.00.6010.013.00.010.01, -1)
            
ShowSyncHudMsg(idg_MsgSync3,"%L"id"AIM_INFO"g_playername[aimid], class, pev(aimidpev_health), pev(aimidpev_armorvalue), g_ammopacks[aimid]) 
Nano x 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 15:03.


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