Edikosh998 Posted June 4, 2012 Posted June 4, 2012 Al fin, http://www.lua.org/manual/5.1/es/ http://correo.uan.edu.mx/~iavalos/introprog.htm Programar no lo hace cualquiera, sino no podes...dejalo. Y si queres progrmaar, estudia y esforzate en hacerlo.
Soren Posted June 4, 2012 Author Posted June 4, 2012 Ya dejen de joda. Solo tengo un problema mas function visible() guiSetVisible (ventana, true) else guiSetVisible (ventana, false) addCommandHandler ("v", visible) Client.lua46: 'end' expected(to close function at line 44) near else
Castillo Posted June 4, 2012 Posted June 4, 2012 1: Te falta terminar la funcion ( un 'end' ). 2: Para usar un 'else' necesitas un 'if' primero.
Alexs Posted June 4, 2012 Posted June 4, 2012 function visible ( ) if ( guiGetVisible ( ventana ) == true ) then --Si la Ventana es Visible guiSetVisible ( ventana, false ) --Se oculta else --Si no guiSetVisible ( ventana, true ) --Aparece end --1 por el if-then-else end --Otro por las funciones addCommandHandler ("v", visible)
Recommended Posts