concating (sp?) help

Blitz3D Forums/Blitz3D Beginners Area/concating (sp?) help

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

You can't concatenate a number onto a variable name to make a new variable. (That's what it looks like you're trying to do.)

Instead, use an array:
Dim light(13)
For i = 1 To 13
	light(i) = CreateLight()
Next


FYI, concatenation is really only a string operation - not for variable names, operators, int, floats, etc. (Though Blitz does automatically convert -- or cast -- ints and floats to strings when you use the + operator on them with another string.)