Araa Posted September 8, 2012 Posted September 8, 2012 Hola, queria que me orienten acerca de como hacer que las tablas se ejecuten en orden, por ejemplo: markersPosition = { {-2574.6545410156, 241.19682312012, 8.6055994033813}, {-2620.3879394531, 375.97979736328, 5.15625}, {-2867.8952636719, 699.45672607422, 22.693984985352}, {-2623.2307128906, 1406.8719482422, 6.1015625}, {-2355.7180175781, 1244.8037109375, 28.829086303711}, {-1913.0294189453, 1256.3291015625, 18.522169113159},} function getNewLocation(player) local num = math.random(#markersPosition) marker = createMarker(markersPosition[num][1], markersPosition[num][2], markersPosition[num][3], "cylinder", 1.5, 100, 200, 50) addEventHandler("onClientMarkerHit", marker, getNewLocation) end Yo lo tengo asi, pero no tengo idea de como hacerlos en orden (no random) asi que si me ayudan se los agradeceria mucho. Hi, this is a signature.
Castillo Posted September 8, 2012 Posted September 8, 2012 Lo que podes hacer es crear una tabla donde guardas el index de cada jugador, y luego usas ese index en lugar de math.random. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Recommended Posts