08-02-2012, 03:59 AM
I have a compilation eror where it thinks a byte is a label
compilation error (*solved*)
|
08-02-2012, 10:49 PM
The problem lies in function ChooseNextUnit()
Code: const NumUnitsIter as Ubyte = 29 The FOR loop is using NumsUnitIter as a variable, but it's already declared globally as a const. You should add the line Code: Dim NumUnitsIter as Ubyte This is a compiler bug, anyway: it should either stop with an error, or issue a warning "Inner declaration hides global constant", or the like. I will fix it later.
08-02-2012, 11:50 PM
thanks :oops:
By the way do you think it will be quicker to: 1. take away 1 from a number, or 2. get a global variable? so i can loop through an array with FOR
08-03-2012, 06:55 AM
slenkar Wrote:thanks :oops:I think the 2nd is faster. Anyway, just use DIM within the function and your code is OK! ;-) (outside the function you will be using the constant).
08-05-2012, 12:17 AM
This has been fixed (I think).
Please, download and install the version 1.2.9s910. Try it and tell me.
08-05-2012, 12:32 AM
yep that works thanks,
it says its not a variable |
« Next Oldest | Next Newest »
|