Patrocinadores

www.soporteoptico.com

www.zonavirtual.es

ayuda en LUA

Bueno, este es mi menu.lua, no he quitado ningun codigo, estan todos pero no se que pasa que da error:

System/menu.lua:50: '=' expected near 'e_

uso LuaPlayerHM8 y este es el codigo:

M1 = Image.load("img/menu1.png")
M2 = Image.load("img/menu2.png")
M3 = Image.load("img/menu3.png")
M4 = Image.load("img/menu4.png")
current=M1
while true do
pad = Controls.read()
screen:clear()
screen:blit(0,0,current)

if pad:right() and current==M1 then
current=M2
end

if pad:left() and current==M2 then
current=M1
end

if pad:right() and current==M2 then
current=M3
end

if pad:left() and current==M3 then
current=M2
end

if pad:right() and current==M3 then
current=M4
end

if pad:left() and current==M4 then
current=M3
end

if pad:cross() and current==M1 then
dofile("files/juegos.lua")
end

if pad:cross() and currern==M2 then
dofile("files/apps.lua")
end

if pad:cross() and currernt==M3 then
dofile("files/creditos.lua")
end

if pad:cross() and current==M4 then
System.Quit
end

screen.waitVblankStart()
screen.flip()
end

¿¿Qué hago mal en mi menú??


http://chytor.creatuforo.com/

Opciones de visualización de comentarios

Seleccione la forma que prefiera para mostrar los comentarios y haga clic en «Guardar las opciones» para activar los cambios.
Imagen de P22

El screen:blit CREO que

El screen:blit CREO que debería ir antes del end

Saludos

EDITO: Lo que te digo es una chorrada, llevo tanto tiempo sin programar que ni me acuerdoXD


SKA-P  x siempre !!!!!!!!!!!!!!!!!!!!!!!!!

Mis gif's:

http://img81.imageshack.us/img81/3876/perrocagongifok5.gif http://img81.imageshack.us/img81/4609/collejagifpw7.gif http://img175.imageshack.us/img175/7113/bolagifms2.gif

Imagen de robione22

en una linea

de las finales dice currernt y eso no existe y en otra dice currernWink

 

 

Esto no va en el foro de programacion?


scenebeta felicidades robione22/sigma trabajar duro trae como consecuencia más trabajo (¡Que bien que me encanta el trabajo!) jejeje

Imagen de CALABATO64

gracias

gracias

 

Ahora el error es:

'=' expected near 'end'


http://chytor.creatuforo.com/

Imagen de CALABATO64

ya no me acuerdo de el codigo, pero este es el nuevo

Menu=Image.load("img/menu.png")
current=Menu
while true do
pad = Controls.read()
screen:clear()
screen:blit(0,0,current)

if pad:cross() then
dofile("files/juegos.lua")
end

if pad:square() then
dofile("files/apps.lua")
end

if pad:circle() then
dofile("files/creditos.lua")
end

if pad:triangle() then
System.Quit()
end

screen.waitVblankStart()
screen.flip()
end


http://chytor.creatuforo.com/

Opciones de visualización de comentarios

Seleccione la forma que prefiera para mostrar los comentarios y haga clic en «Guardar las opciones» para activar los cambios.