Array Index Error
PHP Code:
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team D:\Projects\Amxmodx\Gather\addons\amxmodx\scr ipting\Gather.sma(785) : error 033: array must be indexed (variable "g_subindex") D:\Projects\Amxmodx\Gather\addons\amxmodx\scr ipting\Gather.sma(787) : error 033: array must be indexed (variable "g_sub") D:\Projects\Amxmodx\Gather\addons\amxmodx\scr ipting\Gather.sma(788) : error 033: array must be indexed (variable "g_sub") D:\Projects\Amxmodx\Gather\addons\amxmodx\scr ipting\Gather.sma(790) : error 033: array must be indexed (variable "g_subindex") D:\Projects\Amxmodx\Gather\addons\amxmodx\scr ipting\Gather.sma(793) : error 033: array must be indexed (variable "g_sub") |
Re: Array Problem Again :D
g_subindex is a two dimensional array yet you only give it one index.
|
Re: Array Index Error
I want to Store in it an ID for a Queue List.
lets say g_subindex[1]=ID.of.someone at the g_sub now i want to set for every index the ID,Status,NickName and etc.. How i could possible do this. if i make one dimensional array the g_subindex, will appear more errors about indexing in the g_sub. |
Re: Array Index Error
Quote:
|
Re: Array Index Error
PHP Code:
Code:
|
Re: Array Index Error
You are trying to assign a scalar to an array in several places. I think you need to redo the entire thing with a much less complicated method. You don't need to save names or steam ids in the arrays. You can just get them when you need them.
|
Re: Array Index Error
The data are external not from the server, from an external Application. The server is contacting with sockets to the core... and getting all the data. with the same way it request a substitute, in order to know what to save in the MySQL of the Substitutes i find neccesairy keep the data of the queue list somewhere.
I just made this so its easy to remake it. BUT, i just need you to guide me, actually i need you to tell me what did i done wrong i don't get it... it seems ok :| |
Re: Array Index Error
There is a better way to do it. I know that Bugsy and Exolent both know them but you will have to wait until they see your post (if they want to help).
|
Re: Array Index Error
ofc i'm scripting since 10 at the morning and now is 10 afternoon is time for break .. Tommorow Now, thank you however for your help
|
Re: Array Index Error
I'm sure there is a simple(r) way of doing this but you need to spell it out in English. I don't have the time\patience to try to guess what you're doing by looking at your code. Based on what you said above, it sounds like you are retrieving data from an outside source and you want to put the data in a queue within your plugin until the server has a chance to process it? Give me an example of how the data comes from the server and what you want your plugin to do with it. Use words\examples, not code.
|
| All times are GMT -4. The time now is 07:51. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.