Array index out of bounds for my Waypoint creator?

Blitz3D Forums/Blitz3D Programming/Array index out of bounds for my Waypoint creator?

Guy Fawkes(Posted 2011) [#1]
EDITED

Last edited 2011


stayne(Posted 2011) [#2]
You need to set Global MAX_WAYPOINTS = 25 before the Dims otherwise they are assigned 0. So..

Global MAX_WAYPOINTS = 25

Dim waypointx#(MAX_WAYPOINTS)
Dim waypointy#(MAX_WAYPOINTS)
Dim waypointz#(MAX_WAYPOINTS)


Guy Fawkes(Posted 2011) [#3]
HAH! What a stupid mistake! Thanks alot, @Stayne! =D


Guy Fawkes(Posted 2011) [#4]
Thanks alot, guys! =D


Yasha(Posted 2011) [#5]
Wow, major ninja on my attempt to respond (must learn to type faster...).

Since we're here, though...

I think (I'll admit, I don't know where it came from) that when you see people do "@username", they mean "At username", or shorthand for "username, now I'm talking to you". Hence the use of "@username:"<paragraph> when replying to multiple people in one post. I think the idea is you can just use the person's name with no sigils when in the middle of a sentence.

I could be wrong. I don't use Twitter or IRC or stuff like that where a lot of these traditions come from.