Jump to content

[Ayuda] ipairs


Recommended Posts

Posted

Exactamente, que tengo que hacer si coloco esto:

Lo que quiero lograr, es que se repita un valor de una tabla, 127 veces

value = { 
"l" 
} 
function test (source, commandName) 
for i=1,127 in ipairs(¿¿¿value???) do 
outputChatBox(¿¿i??, source, 255,255,0,true) 
end 
end 

Como consecuencia: Tiene que hacer esto:

l

l

l

l

l

l

l

l

l

l

l

l

l

l

l

l

l

l

l

l

l

l

l

l

l

l

l

l

{ ... }

Posted · Hidden
Hidden
value = { 
"l" 
} 
  
function test (source, commandName) 
    local text = unpack(value)  
    for i=1,127 do 
        outputChatBox(text, source, 255,255,0,true) 
    end 
end 

  • Recently Browsing   0 members

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