Creating Menu
How can I create perfectly a menu who uses fast for server?
Should I use "formatex" ? and also how should "menu_handler" be like? Thanks for helping. |
Re: Creating Menu
Which one is the best for server?
PHP Code:
And also +++; Which one is the best to use? (FAST) PHP Code:
|
Re: Creating Menu
1. Since only two menu exists in amxx, it will depend on what you want to do, but I think no one of both cause lag in server.
2. You only should use formatex if you want to set multilingual support or one variable as an string. Code:
Code:
[en] 3. menu_handler will be like: Code:
4. Loop through players should be like this Code:
More info about newmenus: https://forums.alliedmods.net/showthread.php?t=46364 |
Re: Creating Menu
Consider creating static menus.
|
Re: Creating Menu
Quote:
Use format() when you need to format a string. formatex() is an optimization for when the output variable is not also used as an input. Always use get_players() when you need to loop through players. |
All times are GMT -4. The time now is 11:34. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.