Jump to content

[Ayuda] setGameType


Recommended Posts

Posted

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

350x20_FFFFFF_FFFFFF_000000_000000.png

Ts3: thezombiworld.com:7777

350x20_FFFFFF_FFFFFF_000000_000000.png

Posted

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.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted
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 :D

mtasa://66.85.14.178:22003

350x20_FFFFFF_FFFFFF_000000_000000.png

Ts3: thezombiworld.com:7777

350x20_FFFFFF_FFFFFF_000000_000000.png

Posted

De nada.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

  • Recently Browsing   0 members

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