09.03.2012, 00:53
Quote:
Timer = SetTimer ?
Eu nгo sei nada sobre Settimer , poderia me dar um exemplo? Depois que entender vou seguindo dali! |
Topo do GameMode
PHP код:
forward Clima1();
forward Clima2();
forward ClimaUltimo();
PHP код:
CMD:iniciarclima(playerid, params[])
{
SetTimer("Clima1", 3600000, false);
return 1;
}
PHP код:
public Clima1()
{
SetWorldTime(Hora);
SetWeather(ID do Clima);
SetTimer("Clima2", 3600000, false);
}
PHP код:
public Clima2()
{
SetWorldTime(Hora);
SetWeather(ID do Clima);
SetTimer("Clima3", 3600000, false);
}
E lembre-se o ultimo deverб sempre comeзar o primeiro denovo, por exemplo
PHP код:
public ClimaUltimo()
{
SetWorldTime(Hora);
SetWeather(ID do Clima);
SetTimer("Clima1", 3600000, false);
}