Jump to content

String a *****


Bc#

Recommended Posts

Posted
str = "Hola" 
str = str:rep ( "*", str:len ( ) ) 
print ( str ) 

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

Si que funciona, envia un mensaje a la consola del servidor, igual, era solo un ejemplo.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted
str = "Hola" 
str = str:rep ( "*", str:len ( ) ) 
print ( str ) 
outputChatBox("Mensaje: "..str) 

str = "Hola" 
str = str:rep ( "*", str:len ( ) ) 
outputChatBox("Mensaje: "..str) 

No funcionan.

Bc Media Clan XPG Foro
mtasa://104.223.20.159:21003

Posted

Lo probé en la consola y funciono correctamente:

[2013-10-05 18:42:06] Console executed command: local srt = 'Hola' local srt = string.rep( '*', #srt ) print( srt )

[2013-10-05 18:42:06] Command executed!

También lo probé en 'Lua: demo' y funciono exactamente igual:

local str = 'Hola'

local str = string.rep( '*', #str )

print ( str )

Output:

****

Developer @ MYVAL

  • Recently Browsing   0 members

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