Raised This Month: $ Target: $400
 0% 

[SOLVED] menu_additem - Argument, help?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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