Raised This Month: $ Target: $400
 0% 

How to add text before items in new menus


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 03-05-2010 , 11:18   How to add text before items in new menus
Reply With Quote #1

I would like to do exactly what menu_addtext you provides with the slot set off but using it before adding any items.
SnoW is offline
Send a message via MSN to SnoW
t*stylez
BANNED
Join Date: Apr 2010
Old 05-17-2010 , 21:00   Re: How to add text before items in new menus
Reply With Quote #2

bump
t*stylez is offline
NiQu
Veteran Member
Join Date: Nov 2009
Old 05-17-2010 , 22:50   Re: How to add text before items in new menus
Reply With Quote #3

As far as i know you cannot use menu_addtext or menu_addblank before menu_additem.
__________________
My Projects
  • RoTAPI V0.0.1 ------- Private
    • Progress - [||||||||||]
  • CashMod V0.0.6 ----- Public
    • Progress - [||||||||||]
  • CashMod V0.0.7 ----- Public
    • Progress - [||||||||||]
NiQu is offline
Drak
Veteran Member
Join Date: Jul 2005
Old 05-17-2010 , 23:33   Re: How to add text before items in new menus
Reply With Quote #4

When you do menu_create(); use the title to add stuff.
Ex: menu_create("My Menu^n^nSome Text","_Handle");

Would show:
My Menu

Some Text
1. Item 1
2. Item 2


0. Exit
__________________
Oh yeah
Drak is offline
Send a message via MSN to Drak
NiQu
Veteran Member
Join Date: Nov 2009
Old 05-17-2010 , 23:50   Re: How to add text before items in new menus
Reply With Quote #5

Yh as drak said.

^n = new line
sometimes you have to use ^n^n wich produces 2 new lines instead-
__________________
My Projects
  • RoTAPI V0.0.1 ------- Private
    • Progress - [||||||||||]
  • CashMod V0.0.6 ----- Public
    • Progress - [||||||||||]
  • CashMod V0.0.7 ----- Public
    • Progress - [||||||||||]
NiQu is offline
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 05-18-2010 , 07:51   Re: How to add text before items in new menus
Reply With Quote #6

The title is not enough because of the too small size limit.
SnoW is offline
Send a message via MSN to SnoW
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 05-18-2010 , 14:04   Re: How to add text before items in new menus
Reply With Quote #7

Increase the size of the array you are formatting.
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`
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 05-19-2010 , 07:05   Re: How to add text before items in new menus
Reply With Quote #8

Quote:
Originally Posted by Emp` View Post
Increase the size of the array you are formatting.
Uhm... The native has a limit. Last time I checked I knew how to use an array eh.
SnoW is offline
Send a message via MSN to SnoW
NiQu
Veteran Member
Join Date: Nov 2009
Old 05-19-2010 , 08:34   Re: How to add text before items in new menus
Reply With Quote #9

SnoW, no reason to be rude.
__________________
My Projects
  • RoTAPI V0.0.1 ------- Private
    • Progress - [||||||||||]
  • CashMod V0.0.6 ----- Public
    • Progress - [||||||||||]
  • CashMod V0.0.7 ----- Public
    • Progress - [||||||||||]
NiQu is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 05-19-2010 , 08:44   Re: How to add text before items in new menus
Reply With Quote #10

Quote:
Originally Posted by NiQu View Post
SnoW, no reason to be rude.
wtf are you talking about

Quote:
Originally Posted by SnoW View Post
Uhm... The native has a limit. Last time I checked I knew how to use an array eh.
Native doesn't seem to have any limits (checked code)
__________________

Last edited by xPaw; 05-19-2010 at 08:46.
xPaw 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 08:44.


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