Jump to content

Duda sobre tablas


Recommended Posts

yo tenia algo asi en un server con respecto a un spawn, podria funcionarte al momento de crear el marker

local randomSpawnTable = 
    { 
        { -2818.3, 1134.4, 26.1, 179.2 }, 
        { -343.3, 1544.2, 75.5 }, 
        { 2221.3, 1838.4, 10.8, 90.3 } 
    } 
  
local random = math.random ( #randomSpawnTable ) 
spawnPlayer ( thePlayer, unpack ( randomSpawnTable [ random ] ) )  

Link to comment

Intenta hacerlo con esto

Crea un .lua aparte y lo añades al Meta

routes = 
{ 
    { 
        { x=, y=, z=}, 
        { x=, y=, z=}, 
        { x=, y=, z=}, 
        { x=, y=, z=}, 
        { x=, y=, z=}, 
        { x=, y=, z=}, 
        { x=, y=, z=} 

Link to comment
yo tenia algo asi en un server con respecto a un spawn, podria funcionarte al momento de crear el marker
local randomSpawnTable = 
    { 
        { -2818.3, 1134.4, 26.1, 179.2 }, 
        { -343.3, 1544.2, 75.5 }, 
        { 2221.3, 1838.4, 10.8, 90.3 } 
    } 
  
local random = math.random ( #randomSpawnTable ) 
spawnPlayer ( thePlayer, unpack ( randomSpawnTable [ random ] ) )  

#randomSpawnTable, llamas a la tabla

{

{ x,y,z}

}

No entiendo por que hay que ponerle dos niveles, Me explica?

Link to comment
  • Recently Browsing   0 members

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