Page 1 of 1

While and For Loops within Minetest.

PostPosted: Sat Jun 29, 2013 11:40
by CODE_MACHINE
Hi there everyone,

My name is CODE_MACHINE and I have a lot of programming experience in variable different languages BUT despite that I use regular lua a fair bit I am struggling to implement For and While loops within a
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
minetest.register_abm
function. Your help would be gratefully accepted!

Thanks.

PostPosted: Sat Jun 29, 2013 12:07
by kaeza
CODE_MACHINE wrote:Hi there everyone,

My name is CODE_MACHINE and I have a lot of programming experience in variable different languages BUT despite that I use regular lua a fair bit I am struggling to implement For and While loops within a
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
minetest.register_abm
function. Your help would be gratefully accepted!

Thanks.

Paste the relevant code.

PostPosted: Sat Jun 29, 2013 12:38
by PilzAdam
The loops are the same in the register_abm function, no difference to normal Lua.

PostPosted: Sat Jun 29, 2013 16:11
by CODE_MACHINE
Issue sorted now. Made a few little errors that escaped my notice ;)