AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   new menu system passing arrays (https://forums.alliedmods.net/showthread.php?t=76023)

Styles 08-17-2008 00:27

new menu system passing arrays
 
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

Emp` 08-17-2008 02:31

Re: new menu system passing arrays
 
You should know better than to assign arrays like that. And why isn't data an array? How are you declaring it?

Styles 08-17-2008 08:31

Re: new menu system passing arrays
 
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


All times are GMT -4. The time now is 03:13.

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