Page 1 of 1

[solved] Help? [code]

PostPosted: Sun Aug 19, 2012 22:33
by madchicken13
I keep getting this Error in the Minetest Termenal When My Mod Starts to load :
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
00:29:49: ERROR[main]: ========== ERROR FROM LUA ===========
00:29:49: ERROR[main]: Failed to load and run script from
00:29:49: ERROR[main]: C:\Documents and Settings\UbuntuNerd\My Documents\Minetest - AlwaysCraft Edition 0.4.2\bin\..\mods\minetest\radio\init.lua:
00:29:49: ERROR[main]: ...Minetest - AlwaysCraft Edition 0.4.2\bin\..\mods\minetest\radio\init.lua:11: '<eof>' expected near 'end'
00:29:49: ERROR[main]: =======END OF ERROR FROM LUA ========


Here is the Code For The Mod :
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
music_handle = 0

minetest.register_chatcommand("play_song", {
    params = "<none>",
    description = "Playing",
    func = function(name, param)
        minetest.sound_play("track_1",
            minetest.chat_send_player(name, "Music Playing!!")
            )return
        end
    })end
})   


How do i Fix this??

PostPosted: Sun Aug 19, 2012 22:39
by Topywo
One -- end }) -- too much?

PostPosted: Sun Aug 19, 2012 22:41
by Echo
remove line 11.
Hint: count your opening and closing brackets.

PostPosted: Sun Aug 19, 2012 22:54
by madchicken13
Nope Tried it

PostPosted: Sun Aug 19, 2012 22:56
by madchicken13
Echo wrote:remove line 11.
Hint: count your opening and closing brackets.


Thnx i Forgot to do Lolz