ID:262649
 
var/expn1[] = {110, 150, 245, 355, 470, 585, 610, 765}


I can't understand why this is wrong. It's the first time I have used a list (or a matrix of values, for you guys who have learned C++) in this manner. I'm sure it's something stupid that I'm overlooking.

\_/***\_/
This is the first real problem I've had in weeks. I feel like I have not posted here for forever...
\_/***\_/

--Vito
Perhaps
var/list/expn1[]=list(110,150,245,355,470,585,610,765)

In response to Sinoflife
thanks... but that's still the same error:

150:error: expected expression

--Vito
var/expn1[] = list(110, 150, 245, 355, 470, 585, 610, 765)

Try that.

Hiead
In response to Sinoflife
Sinoflife wrote:
Perhaps
var/list/expn1=list("110","150","245","355","470","585","610","765")

[edit] Just fixed it, retry it.

Uh, his original list was numbers, and you just changed it to strings. Not exactly the best idea there.

Lummox JR
In response to Lummox JR
thanks.


[edit]: nope. "Missing comma or right parentheses." I'm not missing those.

--Vito
In response to Lummox JR
Yeah. Not too farmiliar with lists. >_>
In response to Lummox JR
var/list/expn1 = list("110", "150", "245", "355", "470", "585", "610", "765")


That's what I kave in the code now. It's still an error:
-- 'missing comma "," or right-paren ")"'

Anything else? or, better yet, any links to things that may help?

--Vito
In response to Vito Stolidus
Did you even look at my suggestion?

Hiead
In response to Sinoflife
Sinoflife wrote:
Perhaps
var/list/expn1[]=list(110,150,245,355,470,585,610,765)


Strangely, that looks just like my suggestion. And Lummox's quote shows that in your original post you used text in place of the list numbers.

Just posting this to remind myself I'm not imagining things.

Hiead
In response to Hiead
I edited mine.
In response to Hiead
Yes... but I think I've solved the prblem by circumventing the list. never mind. thanks though.

--Vito
In response to Vito Stolidus
Check the code above it. Often Dream Maker has pointed out a line when the error has been in an if() statement before it.
In response to Elation
I've fixed it already!!!!

Someone please read my shorter posts. thread closed.

--Vito