Raised This Month: $ Target: $400
 0% 

Solved Combine the menus


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 05-22-2021 , 15:07   Re: Combine the menus
Reply With Quote #3

Quote:
Originally Posted by fysiks View Post
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 View Post
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)
__________________
Youtube.com/Supremache

Bank System [Nvault - SQL Support]
VIP System
  • If you think it's that simple, then do it yourself.

Last edited by Supremache; 05-22-2021 at 15:10.
Supremache 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 02:37.


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