What's wrong with my weather changer?
#3

Code:
new Weathers[] =
{
	8,
	9,
	19
};

SetTimer("Weatherst", 300000, true); //OnGameModeInit


forward Weatherst(playerid);

public Weatherst(playerid)
{
    new rand = random(sizeof(Weathers));
    SetPlayerWeather(Weathers[rand]);
}
There was a mistake:
new RanWeath = random(sizeof(RanWeath));
Reply


Messages In This Thread
What's wrong with my weather changer? - by LeXuZ - 01.04.2015, 16:45
Re: What's wrong with my weather changer? - by CalvinC - 01.04.2015, 17:12
Respuesta: What's wrong with my weather changer? - by alexus - 01.04.2015, 17:13
Re: What's wrong with my weather changer? - by Threshold - 01.04.2015, 22:48
Re: What's wrong with my weather changer? - by justice96 - 01.04.2015, 23:50
Re: What's wrong with my weather changer? - by LeXuZ - 02.04.2015, 15:48

Forum Jump:


Users browsing this thread: 2 Guest(s)