Croqueta Posted January 24, 2014 Report Share Posted January 24, 2014 function sayf(...) say(string.format(unpack(arg)))end ya q muchos an buscado una forma como aser tabuladores pues muestro esta mini funcion. con esta funcion se puede creer y leer tabulaciónes en las quests. por ejemplo. sayf("Informacion:%15s no save creen quests","Noa") en el juego se ve asi similar informacion: Noa no save creer Quests _____________ el numero detras de % es el espacio y el "s" es el pattern de la formacion el pattern %s,%d,%f ... estan aqi escritos Debes iniciar sesión para ver el contenido del enlace en esta publicación. Darius Opro, divnos77, Lincoln and 1 other 4 Quote Link to comment Share on other sites More sharing options...
Rafa23Alzira Posted January 24, 2014 Report Share Posted January 24, 2014 Gracias Noa/Croqueta a ver que se me ocurre hacer con esta función Quote Link to comment Share on other sites More sharing options...
-YC- Posted January 24, 2014 Report Share Posted January 24, 2014 Para que vendria sirviendo basicamente esta funcion amigo? Quote Link to comment Share on other sites More sharing options...
Croqueta Posted January 24, 2014 Author Report Share Posted January 24, 2014 a = sql_query("sql","select * from player")b = {}function maxvalue(tabellerueckgabe) local toleranz = 5 return math.max(unpack(tabellerueckgabe))+toleranzendlaenge = (function()b={}for i=1,table.getn(a)do table.insert(b,string.len(a[i][2]))end return maxvalue(b)end)()for i = 1, table.getn(a) do print(string.format("name:"..i.."%"..laenge.."s%2d",a[i][2],a[i][3]))end Debes iniciar sesión para ver el contenido del enlace en esta publicación. Lincoln 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.