While and For Loops within Minetest.

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

While and For Loops within Minetest.

by CODE_MACHINE » Sat Jun 29, 2013 11:40

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.
 

User avatar
kaeza
Member
 
Posts: 2141
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza

by kaeza » Sat Jun 29, 2013 12:07

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.
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 | BTC: 1DFZAa5VtNG7Levux4oP6BuUzr1e83pJK2
 

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

by PilzAdam » Sat Jun 29, 2013 12:38

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

by CODE_MACHINE » Sat Jun 29, 2013 16:11

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


Return to WIP Mods

Who is online

Users browsing this forum: Bing [Bot] and 10 guests

cron