var/list/letters[]
for(var/v=1,v<=length(string),v++)
letters[v] = copytext(string,v,v+1)
runtime error:
list index out of bounds.
Problem description:
i have no idea why isnt this working...
ID:264259
Nov 19 2008, 7:14 am
|
|
Code:
var/list/letters[] runtime error: list index out of bounds. Problem description: i have no idea why isnt this working... |
Nov 19 2008, 7:19 am
|
|
You're never actually initializing the list (creating a list object and setting the var to a reference to it), only defining the var as a /list type (in actuality your code is doing that twice). Some of the ways to initialize a list are using the = operator with the new() proc, list() proc, or using the [0] syntax.
|