Raised This Month: $ Target: $400
 0% 

[ index out of bounds ]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Xablau
Member
Join Date: Dec 2014
Old 01-08-2015 , 20:59   Re: [ index out of bounds ]
Reply With Quote #1

Quote:
Originally Posted by fysiks View Post
You need to learn to debug these things on your own if you are going to keep asking about trivial problems.

When you are working with strings and need to know the maximum string length (arguments 3, 5, and 7 of the parse command), you should be charsmax(szStringVariable).
The index out of bounds refers to the limit of entries in lines being greater than 31

lines[30][100] to lines[100][100] not work, with error: stack error

and...

PHP Code:
parse(lines[i], line_variablecharsmax(line_variable), line_valuecharsmax(line_value), line_value2charsmax(line_value2)) 
not work...

How to fix?

Last edited by Xablau; 01-08-2015 at 21:00.
Xablau is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-08-2015 , 22:10   Re: [ index out of bounds ]
Reply With Quote #2

Like I said, you need to learn to debug. What happens when you change it to 200 string? What is the value of 'count'?

P.S. stop putting brackets around your whole topic title.
__________________

Last edited by fysiks; 01-08-2015 at 22:10.
fysiks is offline
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 15:31.


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