Raised This Month: $ Target: $400
 0% 

new menu system passing arrays


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Styles
Veteran Member
Join Date: Jul 2004
Location: California
Old 08-17-2008 , 00:27   new menu system passing arrays
Reply With Quote #1

menu_additem(menu, output, iteminfo, 0) (iteminfo is an array size 6)
now, I pass it, it doesn't throw any errors at all.. now on the

public mBuyHandler(id, menu, item)


it:
new access, callback
menu_item_getinfo(menu, item, access, data, 5, iName, 63, callback)\
new key[6] = data

data is not an array.. I think I fail what can I do? I can't find any serialization or anything
Styles is offline
Send a message via AIM to Styles
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 08-17-2008 , 02:31   Re: new menu system passing arrays
Reply With Quote #2

You should know better than to assign arrays like that. And why isn't data an array? How are you declaring it?
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`
Styles
Veteran Member
Join Date: Jul 2004
Location: California
Old 08-17-2008 , 08:31   Re: new menu system passing arrays
Reply With Quote #3

Asign arrays like what? o.0 omg like

I'm doing a Query to a DB and I want to pass.. wow I'm stupid yeah this was completely stupid of me.. stab me Emp` I need to be like shot for all this sorry
Styles is offline
Send a message via AIM to Styles
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 03:13.


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