Invalid cellvector handle
Am I missing something here?
PHP Code:
Quote:
|
Re: Invalid cellvector handle
The line numbers.
ArrayCreate() was not called before using ArrayGetArray(). |
Re: Invalid cellvector handle
Quote:
Quote:
|
Re: Invalid cellvector handle
You are trying to get from an empty array.
|
Re: Invalid cellvector handle
If the array was empty, the error would have been "invalid index", not "invalid handle". The only way this error can show if is either ArrayCreate() wasn't called or ArrayDestroy() was used. Check your entire plugin_precache() function, something may be preventing the code from reaching ArrayCreate() - check your error logs for other errors in the plugin, especially when starting the server.
|
Re: Invalid cellvector handle
I think you are wrong. It's always the same error, where the first parameter indicates the handle id, the second index to get and the third size of the array, as the size is 0, there is nothing to get, therefor the error.
Code:
// ArrayGetArray(Array:which, item, any:output[]); |
Re: Invalid cellvector handle
Check if the array is not empty.
|
Re: Invalid cellvector handle
Quote:
|
Re: Invalid cellvector handle
ArraySize()
|
Re: Invalid cellvector handle
Quote:
PHP Code:
|
All times are GMT -4. The time now is 19:43. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.