AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [SOLVED] menu_additem - Argument, help? (https://forums.alliedmods.net/showthread.php?t=120138)

JProReTaRD 03-01-2010 05:20

[SOLVED] menu_additem - Argument, help?
 
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.

Xellath 03-01-2010 06:24

Re: menu_additem - Argument, help?
 
http://www.amxmodx.org/funcwiki.php?go=func&id=1156

JProReTaRD 03-01-2010 07:06

Re: menu_additem - Argument, help?
 
Thank you :)


All times are GMT -4. The time now is 08:41.

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