AddMenuItem HU
From SA-MP Wiki
Description:
Hozzáad egy elemet a megadott menühöz.
(Menu:menuid, oszlop, cimke[])
menuid | A menü azonosítója, melyhez az elemet adjuk. |
oszlop | A oszlop száma, melyhez az elemet adjuk. |
cimke[] | Az új elem felirata. |
Visszatérési érték: | A függvény nem ad vissza értéket. |
new Menu:examplemenu; public OnGameModeInit() { examplemenu = CreateMenu("Saját menü", 2, 200.0, 100.0, 150.0, 150.0); AddMenuItem(examplemenu, 0, "elem 1"); AddMenuItem(examplemenu, 0, "elem 2"); return 1; }
Related Functions
The following functions may be useful, as they are related to this function in one way or another.
- CreateMenu: Create a menu.
- SetMenuColumnHeader: Set the header for one of the columns in a menu.
- DestroyMenu: Destroy a menu.
Related Callbacks
The following callbacks might be useful, as they're related to this function in one way or another.
- OnPlayerSelectedMenuRow: Called when a player selected a row in a menu.
- OnPlayerExitedMenu: Called when a player exits a menu.