Raised This Month: $ Target: $400
 0% 

[HELP] menu_item_getinfo before selection.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
CodingIsHard
Junior Member
Join Date: Jul 2015
Old 11-18-2015 , 05:23   [HELP] menu_item_getinfo before selection.
Reply With Quote #1

What i'm trying to achieve:

new g_ItemID[33];
g_ItemID[id] = 5;

Before I open the menu with items in it, the code checks integer from g_ItemID[id] and will add \d in front of the menu entry with the integer in it's "info" argument.

PHP Code:
menu_additem(item"doneld duck""1"0);
menu_additem(item"dank kush""2"0);
menu_additem(item"spongebob""3"0);
menu_additem(item"default entry""4"0);
menu_additem(item"\dBat""5"0); // <-- Selected 
How could I achieve this?

Last edited by CodingIsHard; 11-18-2015 at 05:26.
CodingIsHard 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 18:14.


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