iFoReX Posted April 1, 2012 Posted April 1, 2012 Buee como dice en el titulo siempre e querido aprender como crear tablas y para que sirven elMota/elFoReX De Vuelta En MTA *---------* Cuenta De Youtube En La Que Subo Tutoriales Acerca De MTA :3 https://www.youtube.com/user/KillersGPs
Alexs Posted April 1, 2012 Posted April 1, 2012 Buee como dice en el titulo siempre e querido aprender como crear tablas y para que sirven tablas para expresar distintos datos para un math.random o hablas de las tablas de SQL que ordenan la informacion?? Developer @ MYVAL
iFoReX Posted April 1, 2012 Author Posted April 1, 2012 nose ._. elMota/elFoReX De Vuelta En MTA *---------* Cuenta De Youtube En La Que Subo Tutoriales Acerca De MTA :3 https://www.youtube.com/user/KillersGPs
Castillo Posted April 1, 2012 Posted April 1, 2012 http://lua-users.org/wiki/TablesTutorial San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Alexs Posted April 1, 2012 Posted April 1, 2012 nose ._. jajaj es que puede ser tablas como las de: local tablexd = 411, 410, 308 --Distintos ID function Vehiculocrear createVehicle ( math.random(#tablexd), 272, 384, 55, 0, 0, 90 ) --se Crearia Aleatoriamente un vehiculo con ID de los de arriba. addEventHandler("onResourceStart",Vehiculocrear) http://lua-users.org/wiki/TablesTutorial Es mejor aprender con otras cosas, esos tutoriales solo me confunden mas Developer @ MYVAL
Castillo Posted April 1, 2012 Posted April 1, 2012 @Alexs_Steel: Eso no es una tabla, es una variable. Ademas tu script nunca funcionaria. Una tabla es esto: local table = { 411, 410, 308 } -- Una tabla con diferentes modelos de vehiculos. function Vehiculocrear ( ) createVehicle ( table[ math.random ( #table ) ], 0, 0, 5 ) -- Crea un vehiculo un modelo aleatorio de la tabla. end addEventHandler ( "onResourceStart",resourceRoot, Vehiculocrear ) San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
iFoReX Posted April 1, 2012 Author Posted April 1, 2012 OK Y EL 0, 0, 5 que hace ? elMota/elFoReX De Vuelta En MTA *---------* Cuenta De Youtube En La Que Subo Tutoriales Acerca De MTA :3 https://www.youtube.com/user/KillersGPs
Alexs Posted April 1, 2012 Posted April 1, 2012 OK Y EL 0, 0, 5 que hace ? Coordenadas de creacion del vehiculo xDD PD: Tomalo como si fuera un createVehicle normal, pero en vez de un modelo lleva 3 que son creados aleatoriamente (random = aleatorio) Developer @ MYVAL
iFoReX Posted April 1, 2012 Author Posted April 1, 2012 aa ._. ya voy entendiendo , muchas gracias solid y alexs_steel y lo del mySQL como se hacen esas ? elMota/elFoReX De Vuelta En MTA *---------* Cuenta De Youtube En La Que Subo Tutoriales Acerca De MTA :3 https://www.youtube.com/user/KillersGPs
Castillo Posted April 1, 2012 Posted April 1, 2012 Apenas entendes los argumentos de las funciones, no te aconsejo intentar estudiar MySQL aun. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
iFoReX Posted April 1, 2012 Author Posted April 1, 2012 Si se solo quiero que me enseñen lo basico del mySQL elMota/elFoReX De Vuelta En MTA *---------* Cuenta De Youtube En La Que Subo Tutoriales Acerca De MTA :3 https://www.youtube.com/user/KillersGPs
Castillo Posted April 1, 2012 Posted April 1, 2012 dbConnect dbExec dbQuery dbPoll dbFree Clickea en cada funcion, tienen ejemplos. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
iFoReX Posted April 1, 2012 Author Posted April 1, 2012 Ok lo ultimo que pregunto ahora , Para que sirven esas funciones ? elMota/elFoReX De Vuelta En MTA *---------* Cuenta De Youtube En La Que Subo Tutoriales Acerca De MTA :3 https://www.youtube.com/user/KillersGPs
Castillo Posted April 1, 2012 Posted April 1, 2012 Vos me estas tomando el pelo? querias estudiar lo basico de MySQL y te di las funciones para hacerlo. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
iFoReX Posted April 1, 2012 Author Posted April 1, 2012 Solid ayudame con esto https://forum.multitheftauto.com/viewtopic.php?f=145&t=41847&start=45 a y podes ya bloquear el post lo del math.random me re servira elMota/elFoReX De Vuelta En MTA *---------* Cuenta De Youtube En La Que Subo Tutoriales Acerca De MTA :3 https://www.youtube.com/user/KillersGPs
Castillo Posted April 1, 2012 Posted April 1, 2012 Tema cerrado. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Recommended Posts