ArrayGetString problem.
Hello,
Everytime I select a certain item in menu, it throws me this error: PHP Code:
Here is GetItemName stock: Code:
and here is menu handler: Code:
|
Re: ArrayGetString problem.
Show the code that creates the menu.
|
Re: ArrayGetString problem.
Code:
|
Re: ArrayGetString problem.
Short case scenario menu info string each cell holds 1 byte unsigned int. A value from (0 to 255)
Also you have invalid item info index -11 -12 will give you array out of bounds error |
Re: ArrayGetString problem.
It don't give me array out of bounds, it returns me 245 index instead -11; -12. Those index item should be valid in menu handler:
Code:
|
Re: ArrayGetString problem.
you should handle the items that are invalid array indexes which are -11 -12 before using them in the array in the menu handler function.
and also as i said the above READ ABOVE! |
Re: ArrayGetString problem.
Quote:
|
Re: ArrayGetString problem.
So, I need to declare variable as signed int to hold negative and positive values, isn't that?
|
Re: ArrayGetString problem.
Quote:
Quote:
|
Re: ArrayGetString problem.
If there are no data types, what should I do in this case?
|
| All times are GMT -4. The time now is 17:15. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.