0 Members and 1 Guest are viewing this topic.
Hmm, it actually seems as though they DO have 5.1.4 on it O.o No idea why the += operators aren't working then. I explicitly remember being able to use them when I used Lua a few years ago, and I've seen code examples with double ops in them.
Quote from: Ashbad on June 03, 2011, 05:00:04 pmHmm, it actually seems as though they DO have 5.1.4 on it O.o No idea why the += operators aren't working then. I explicitly remember being able to use them when I used Lua a few years ago, and I've seen code examples with double ops in them.Well, in the official Manual, " += " appears only one time, in the C integration part : http://www.lua.org/manual/5.1/manual.html#lua_CFunction
for i=1,21,2 do aliensXY[i]=(math.ceil(i/2)-1)%7*31+1 aliensXY[i+1]=math.floor((math.ceil(i+1/2)-1)/7)*25+10 shotsXY[i]=aliensX[i] shotsXY[i+1]=200end
for i=1,21,2 do aliensXY[i]=(math.ceil(i/2)-1)%7*31+1 aliensXY[i+21]=math.floor((math.ceil(i+1/2)-1)/7)*25+10javascript:void(0); shotsXY[i]=aliensXY[i] shotsXY[i+21]=200end
- using numbers for directions rather than strings.
PS:Well, it is 9:20 in France, but in USA, it may be very early... I will not get any answers until a few hours, I think
If it could help you to understand :
I am a proud cynic.