[Tutorial] How to make Random weather.
#3

Did you even try to compile your script?

pawn Код:
forward RandomWeather();
public GlobalWeather()
You forward a public named "RandomWeather" but the public itself is named "GlobalWeather".

Also, there is no need for a global variable.

pawn Код:
public GlobalWeather()
{
    return SetWeather(random(20)); //This will set the weather to a random number which is held in the variable "Weather"
}
Reply


Messages In This Thread
How to make Random weather. - by Tee - 05.02.2011, 15:23
Re: How to make Random weather. - by Ockad - 05.02.2011, 18:29
Re: How to make Random weather. - by [03]Garsino - 05.02.2011, 18:31
Re: How to make Random weather. - by Antonio [G-RP] - 05.02.2011, 18:32
Re: How to make Random weather. - by Ockad - 05.02.2011, 18:34
Re: How to make Random weather. - by [03]Garsino - 05.02.2011, 18:36
Re: How to make Random weather. - by Ockad - 05.02.2011, 18:37
Re: How to make Random weather. - by Tee - 05.02.2011, 18:48
Re: How to make Random weather. - by HeLiOn_PrImE - 19.06.2012, 10:08
Re: How to make Random weather. - by Jonny5 - 21.06.2012, 23:52

Forum Jump:


Users browsing this thread: 1 Guest(s)