AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Menu Help. (https://forums.alliedmods.net/showthread.php?t=129451)

shuttle_wave 06-13-2010 01:51

Menu Help.
 
In the old style menu i can do this

PHP Code:

iLen += formatex(szMenu[iLen], sizeof(szMenu) - iLen"\d%i. %s - $%i^n"iNum+1g_szShopItems[iNum], iCost);


new const 
g_szShopItems[MAX_SHOP][] =
{
    
"HE Grenade",
    
"Stealth (10 Seconds)",
    
"Turbo (15 Seconds)",
    
"Invincibility (10 Seconds)",
    
"Respawn",
    
"HP (150 HP)",
    
"Glow (Random Colour)"
}; 

how would i do that in the new amxx menu.

so it makes a menu item from

g_szShopItems[MAX_SHOP]

fysiks 06-13-2010 02:18

Re: Menu Help.
 
PHP Code:

new tempstring[]
format(tempstring, ...)
menu_additem(iMenuPointertempstring"1"

etc.

shuttle_wave 06-13-2010 02:19

Re: Menu Help.
 
Quote:

Originally Posted by fysiks (Post 1207345)
PHP Code:

new tempstring[]
format(tempstring, ...)
menu_additem(iMenuPointertempstring"1"

etc.

Ok Sweet ty


All times are GMT -4. The time now is 14:42.

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