Quote:
Originally Posted by Exolent[jNr]
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 szHp[ 33 ];
get_pcvar_string( g_Hp, szHp, 32 );
menu_additem( menu, "Give HP (+%s HP)", "1", 0, szHp );