Jump to content

mini-[R]nueva funcion sayf


Croqueta

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...