Raised This Month: $ Target: $400
 0% 

menu_additem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Diegorkable
Veteran Member
Join Date: Jun 2011
Old 11-03-2011 , 07:47   menu_additem
Reply With Quote #1

I have noticed that menu_additem can add a string that is a maximum 19 len word. I noticed that because I tried adding the map name deathrun_mini_city_final and it added only deathrun_mini_city_. Is there any way I could make it maybe longer? (maybe from going to the function sma), will it cause problems if I make it longer?
__________________
My Projects:

Auto-Mix (Pug): 100%

Joined the Military (a soldier now) - Inactive
Diegorkable is offline
MyPc
Senior Member
Join Date: Sep 2011
Old 11-03-2011 , 09:30   Re: menu_additem
Reply With Quote #2

Quote:
Originally Posted by Diegorkable View Post
I have noticed that menu_additem can add a string that is a maximum 19 len word. I noticed that because I tried adding the map name deathrun_mini_city_final and it added only deathrun_mini_city_. Is there any way I could make it maybe longer? (maybe from going to the function sma), will it cause problems if I make it longer?
You can always use old style menu ( iLen += .. )
MyPc is offline
Diegorkable
Veteran Member
Join Date: Jun 2011
Old 11-03-2011 , 13:28   Re: menu_additem
Reply With Quote #3

Never tried that before, is there anything you can link me to?
__________________
My Projects:

Auto-Mix (Pug): 100%

Joined the Military (a soldier now) - Inactive
Diegorkable is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 11-03-2011 , 13:30   Re: menu_additem
Reply With Quote #4

Most likely you are limiting the size of the map name. Show your code.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
Diegorkable
Veteran Member
Join Date: Jun 2011
Old 11-03-2011 , 16:20   Re: menu_additem
Reply With Quote #5

nah not really, the array size of the menu item is 70
anyways for testing I tried to menu_additem("deathrun..blblblal") and same, it looked the same.
__________________
My Projects:

Auto-Mix (Pug): 100%

Joined the Military (a soldier now) - Inactive
Diegorkable is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 11-03-2011 , 19:04   Re: menu_additem
Reply With Quote #6



It seems that item names get cut off at 78 (but that is definitely not 19)

Also you can see that the menu gets cut short too (no next or exit displayed)

If you want help, show us your code.

edit: Plugin from screenshot: Smart Slash

Last edited by Emp`; 11-03-2011 at 19:05.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
MyPc
Senior Member
Join Date: Sep 2011
Old 11-04-2011 , 01:16   Re: menu_additem
Reply With Quote #7

Quote:
Originally Posted by Emp` View Post


It seems that item names get cut off at 78 (but that is definitely not 19)

Also you can see that the menu gets cut short too (no next or exit displayed)

If you want help, show us your code.

edit: Plugin from screenshot: Smart Slash
you used formatex() with 128chrs i think it matters what his string len ..
MyPc is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 11-04-2011 , 01:18   Re: menu_additem
Reply With Quote #8

I made a similar mistake once so:

Quote:
Originally Posted by Emp` View Post
Show your code.
__________________

Last edited by fysiks; 11-04-2011 at 01:19.
fysiks is offline
Reply



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 14:26.


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