While and For Loops within Minetest.

Post Reply
User avatar
CODE_MACHINE
New member
Posts: 4
Joined: Sat Jun 29, 2013 10:21
Location: Derbyshire, England

While and For Loops within Minetest.

by CODE_MACHINE » Post

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

Code: Select all

minetest.register_abm
function. Your help would be gratefully accepted!

Thanks.

User avatar
kaeza
Moderator
Posts: 2162
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza
Location: Montevideo, Uruguay
Contact:

by kaeza » Post

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

Code: Select all

minetest.register_abm
function. Your help would be gratefully accepted!

Thanks.
Paste the relevant code.
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal

User avatar
PilzAdam
Member
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam
Location: Germany

by PilzAdam » Post

The loops are the same in the register_abm function, no difference to normal Lua.

User avatar
CODE_MACHINE
New member
Posts: 4
Joined: Sat Jun 29, 2013 10:21
Location: Derbyshire, England

by CODE_MACHINE » Post

Issue sorted now. Made a few little errors that escaped my notice ;)

Post Reply

Who is online

Users browsing this forum: No registered users and 18 guests