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-25-2015 , 18:34   Re: How to add comma ?
Reply With Quote #20

sorry i have post the wrong code this is the code that i need to add comma in
PHP Code:
// Zombie Class Menu
public menu_zclass(idmenuiditem)
{
    
// Menu was closed
    
if (item == MENU_EXIT)
    {
        
menu_destroy(menuid)
        return 
PLUGIN_HANDLED;
    }
    
    
// Retrieve zombie class id
    
static buffer[2], dummyclassid
    menu_item_getinfo
(menuiditemdummybuffercharsmax(buffer), __dummy)
    
classid buffer[0]
    
    
// Store selection for the next infection
    
g_zombieclassnext[id] = classid
    
    
static name[32]
    
ArrayGetString(g_zclass_nameg_zombieclassnext[id], namecharsmax(name))
    
    
// Show selected zombie class info and stats
    
zp_colored_print(id"^x04[ZP]^x01 %L^x01:^x04 %s"id"ZOMBIE_SELECT"name)
    
zp_colored_print(id"^x04[ZP]^x01 %L^x01:^x04 %d^x01 |^x01 %L^x01:^x04 %d^x01 |^x01 %L^x01:^x04 %d^x01 |^x01 %L^x01:^x04 %d%%"id"ZOMBIE_ATTRIB1"ArrayGetCell(g_zclass_hpg_zombieclassnext[id]), id"ZOMBIE_ATTRIB2"ArrayGetCell(g_zclass_spdg_zombieclassnext[id]),
    
id"ZOMBIE_ATTRIB3"floatround(Float:ArrayGetCell(g_zclass_gravg_zombieclassnext[id]) * 800.0), id"ZOMBIE_ATTRIB4"floatround(Float:ArrayGetCell(g_zclass_kbg_zombieclassnext[id]) * 100.0))
    
    
menu_destroy(menuid)
    return 
PLUGIN_HANDLED;

, this plugins has lang file,i need comma in the one that have line under it
PHP Code:
zp_colored_print(id"^x04[ZP]^x01 %L^x01:^x04 %d^x01 |^x01 %L^x01:^x04  %d^x01 |^x01 %L^x01:^x04 %d^x01 |^x01 %L^x01:^x04 %d%%" 
[ZP]^x01 %L^x01:^x04 %d^x01 = health:%d

Last edited by Nano x; 11-25-2015 at 18:57. Reason: more details
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