the problem likely stems from the fact that it looks like you're only storing one variable in your array, rather than the set of three you need. The second command is related to this, in that it can't read strings at all. however, if you use seperate variables for each of the location points, the code should work.
Book Wise
https://X4nd5r.deviantart.com