Raised This Month: $ Target: $400
 0% 

[SOLVED] menu_additem - Argument, help?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
JProReTaRD
Member
Join Date: May 2009
Location: Denmark, KBH
Old 03-01-2010 , 05:20   [SOLVED] menu_additem - Argument, help?
Reply With Quote #1

Hi.

I want to show a name in my menu item. I can't make it work.
It says: Punish %s ingame.

Hope some1 can help

PHP Code:
public Menu_PlayersMenu_Sub (idtempidszAuthID)
{
 new 
szName[32];
 
get_user_name(tempidszName31);
 
 new 
menu menu_create("\rRules Maintained: \yPunish SubMenu""handler_PlayersMenu_Sub");
 
 
menu_additem(menu"\wPunish %s""1"ADMIN_ALLszName[id]);
 
 
menu_setprop(menuMPROP_EXITMEXIT_ALL);
 
 
menu_display(idmenu0);
 

thank you in advance.

Last edited by JProReTaRD; 03-01-2010 at 07:07.
JProReTaRD is offline
Xellath
Veteran Member
Join Date: Dec 2007
Location: Sweden
Old 03-01-2010 , 06:24   Re: menu_additem - Argument, help?
Reply With Quote #2

http://www.amxmodx.org/funcwiki.php?go=func&id=1156
__________________
Achievements API - a simple way for you to create your OWN custom achievements!
Xellath is offline
JProReTaRD
Member
Join Date: May 2009
Location: Denmark, KBH
Old 03-01-2010 , 07:06   Re: menu_additem - Argument, help?
Reply With Quote #3

Thank you
JProReTaRD is offline
Reply


Thread Tools
Display Modes

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 08:41.


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