Quote:
Originally Posted by fysiks
The first thing I notice is that you're using the variable iMenu for two entirely different purposes at the same time which is not possible. Your menu type and the menu pointer used with the menu_*() functions cannot use the same variable.
However, the first question that you should ask yourself is, why would you combine these menus if you're not keeping their functionality completely separate (via the menu type) anyways? As it is, without any other reason, it looks like you shouldn't even attempt combining menus like this. If you have some reason to do it, you should explain because that will help us help you get to the best result.
|
I created other variable but it didn't work.
There's three commands on my
plugin using the same style of menu for getting online players why i add same menu three times for three commands and there's way to make one menu for these commands.
Quote:
Originally Posted by fysiks
Also, MenuTitle() is not an AMX Mod X function, what does it do?
|
I did defines for formatex:
Code:
#define MenuInfo(%1) formatex(szItem, charsmax(szItem), %1, g_iPlayerXP[iPlayer], szPlayerName[iPlayer], g_iPlayerLevel[iPlayer], g_mPlayerData[ g_iPlayerLevel[iPlayer]][m_szRankName]);
#define MenuTitle(%1) formatex(szTitle,charsmax(szTitle), %1)
__________________