Jump to content

Recommended Posts

  • Former Staff

Where is the error?

When i click 'lel' the window closes. 

quest warpring begin
state start begin
when 70007.use begin
say_size(350, 360)
			addimage(21,7,"nost.tga")
			setcolor(0,0,0)
			say_black("")
			say_black("")
			say_title ( "Warp Ring" )
			say ( "" )
			say ( "azddxvcxvxcv." )
			local opzioni =select ("things","lel")
			if opzioni == 1 then
			local opzioni2 =select ("Map 1 Jinno","Map 2 Jinno","Map 1 Chunjo","Map 2 Chunjo","Map 1 Shinsoo","Map 2 Shinsoo","Cancel")
			if opzioni2 == 1 then
			pc . warp ( 969600 , 278400 )
			elseif opzioni2 == 2 then
			pc . warp ( 873100 , 242600 )
			elseif opzioni2 == 3 then
			pc . warp ( 55700 , 157900 )
			elseif opzioni2 == 4 then
			pc . warp ( 138500 , 234900 )
			elseif opzioni2 == 5 then
			pc . warp ( 469300 , 964200 )
			elseif opzioni2 == 6 then
			pc . warp ( 360800 , 877600 )
			elseif opzioni2 == 7 then
			return
			elseif opzioni == 2 then
			say_title ( "Warp Ring" )
			say ( "" )
			say ( "azddxvcxvxcv." )
				end
			end
		end
	end
end

Thanks.

Link to comment
Share on other sites

quest warpring begin
    state start begin
        when 70007.use begin
            say_size(350, 360)
                addimage(21,7,"nost.tga")
                setcolor(0,0,0)
                say_black("")
                say_black("")
                say_title ( "Warp Ring" )
                say ( "" )
                say ( "azddxvcxvxcv." )
                local opzioni =select ("things","lel")
                if opzioni == 1 then
                    local opzioni2 =select ("Map 1 Jinno","Map 2 Jinno","Map 1 Chunjo","Map 2 Chunjo","Map 1 Shinsoo","Map 2 Shinsoo","Cancel")
                    if opzioni2 == 1 then
                        pc . warp ( 969600 , 278400 )
                    elseif opzioni2 == 2 then
                        pc . warp ( 873100 , 242600 )
                    elseif opzioni2 == 3 then
                        pc . warp ( 55700 , 157900 )
                    elseif opzioni2 == 4 then
                        pc . warp ( 138500 , 234900 )
                    elseif opzioni2 == 5 then
                        pc . warp ( 469300 , 964200 )
                    elseif opzioni2 == 6 then
                        pc . warp ( 360800 , 877600 )
                    elseif opzioni2 == 7 then
                        return
                    elseif opzioni == 2 then
                        say_title ( "Warp Ring" )
                        say ( "" )
                        say ( "azddxvcxvxcv." )
                    end
                end
            end
        end
    end
end

There was a missing 'end'. Next time take care of the tabulators.

Link to comment
Share on other sites

  • Former Staff
quest warpring begin
    state start begin
        when 70007.use begin
            say_size(350, 360)
                addimage(21,7,"nost.tga")
                setcolor(0,0,0)
                say_black("")
                say_black("")
                say_title ( "Warp Ring" )
                say ( "" )
                say ( "azddxvcxvxcv." )
                local opzioni =select ("things","lel")
                if opzioni == 1 then
                    local opzioni2 =select ("Map 1 Jinno","Map 2 Jinno","Map 1 Chunjo","Map 2 Chunjo","Map 1 Shinsoo","Map 2 Shinsoo","Cancel")
                    if opzioni2 == 1 then
                        pc . warp ( 969600 , 278400 )
                    elseif opzioni2 == 2 then
                        pc . warp ( 873100 , 242600 )
                    elseif opzioni2 == 3 then
                        pc . warp ( 55700 , 157900 )
                    elseif opzioni2 == 4 then
                        pc . warp ( 138500 , 234900 )
                    elseif opzioni2 == 5 then
                        pc . warp ( 469300 , 964200 )
                    elseif opzioni2 == 6 then
                        pc . warp ( 360800 , 877600 )
                    elseif opzioni2 == 7 then
                        return
                    elseif opzioni == 2 then
                        say_title ( "Warp Ring" )
                        say ( "" )
                        say ( "azddxvcxvxcv." )
                    end
                end
            end
        end
    end
end

There was a missing 'end'. Next time take care of the tabulators.

 

 

ek6Nf.png

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

Oh sh*t, I made a mistake with the tabulators :D Sorry. I look at it again.

 

Try this:

quest warpring begin
    state start begin
        when 70007.use begin
            say_size(350, 360)
            addimage(21,7,"nost.tga")
            setcolor(0,0,0)
            say_black("")
            say_black("")
            say_title ( "Warp Ring" )
            say ( "" )
            say ( "azddxvcxvxcv." )
            local opzioni =select ("things","lel")
            if opzioni == 1 then
                local opzioni2 =select ("Map 1 Jinno","Map 2 Jinno","Map 1 Chunjo","Map 2 Chunjo","Map 1 Shinsoo","Map 2 Shinsoo","Cancel")
                if opzioni2 == 1 then
                    pc . warp ( 969600 , 278400 )
                elseif opzioni2 == 2 then
                    pc . warp ( 873100 , 242600 )
                elseif opzioni2 == 3 then
                    pc . warp ( 55700 , 157900 )
                elseif opzioni2 == 4 then
                    pc . warp ( 138500 , 234900 )
                elseif opzioni2 == 5 then
                    pc . warp ( 469300 , 964200 )
                elseif opzioni2 == 6 then
                    pc . warp ( 360800 , 877600 )
                elseif opzioni2 == 7 then
                    return
                end
            elseif opzioni == 2 then
                say_title ( "Warp Ring" )
                say ( "" )
                say ( "azddxvcxvxcv." )
            end
        end
    end
end
  • Love 1
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.