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 , 09:22   Re: Menu with cvar
Reply With Quote #7

Quote:
Originally Posted by Altecaho View Post
Code:
    menu_additem(menu, "\w+50hp and +100 armor", "1", 0);
    menu_additem(menu, "\wAdrenalinas", "2", 0);
    menu_additem(menu, "\wUSP", "3", 0);
    menu_additem(menu, "\w300 armor", "4", 0);
"Give HP (+%s HP)", "1" here must show "amx_give_hp", "50"

Cause if i create menu with:
PHP Code:
menu_additem(menu"\w+50hp and +100 armor""1"0); 
and all the time i must edit CVar and menu text...

I try:
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 ); 
And got error: argument type nismatch <argument 5>

Last edited by Debesėlis; 10-13-2010 at 09:37.
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