Raised This Month: $ Target: $400
 0% 

Menu with cvar


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Debesėlis
Senior Member
Join Date: Aug 2008
Location: Lithuania
Old 10-13-2010 , 10:06   Re: Menu with cvar
Reply With Quote #4

Quote:
Originally Posted by Exolent[jNr] View Post
Format the menu item into a string and pass the string into the menu_additem().
Please can you help why i gor argument 5?

PHP Code:
new g_Hp;

public 
plugin_init ( ) {
    
g_Hp register_cvar"amx_give_hp""50" );
}

new 
szHp33 ];
get_pcvar_stringg_HpszHp32 );

menu_additemmenu"Give HP (+%s HP)""1"0szHp ); 
Debesėlis 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 10:28.


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