Narutimmy Posted April 6, 2014 Posted April 6, 2014 Hola bueno ise este pequeño script que en teoria deberia funcionar pero no lo hace, la idea es que al comenzar diga "Dia : 0", pasados 10 segundos diga "Dia : 2" y asi pero por alguna razon comienza dia 0, dia 1 pero hasta ahi setTimer( function () local Day = 0 Day = Day + 1 setGameType("Dia : "..Day.."") setMapName("Fairview") end, 10000,0) mtasa://66.85.14.178:22003 Ts3: thezombiworld.com:7777
Castillo Posted April 6, 2014 Posted April 6, 2014 Eso es porque la variable la estas re-definiendo cada ves. local Day = 0 setTimer ( function ( ) setGameType ( "Dia : ".. Day .."" ) setMapName ( "Fairview" ) Day = ( Day + 1 ) end , 10000, 0 ) San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Narutimmy Posted April 6, 2014 Author Posted April 6, 2014 Eso es porque la variable la estas re-definiendo cada ves. local Day = 0 setTimer ( function ( ) setGameType ( "Dia : ".. Day .."" ) setMapName ( "Fairview" ) Day = ( Day + 1 ) end , 10000, 0 ) Muchas Gracias mtasa://66.85.14.178:22003 Ts3: thezombiworld.com:7777
Castillo Posted April 6, 2014 Posted April 6, 2014 De nada. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Recommended Posts