Get Weather
#7

For SetWeather:
Code:
forward SetWeatherEx(weatherid);
forward GetWeather();

new CurrentWeather;

public SetWeatherEx(weatherid)
{
  SetWeather(weatherid);
  CurrentWeather = weatherid;
}

public GetWeather()
{
  return CurrentWeather;
}
And replace all the ''SetWeather'' to ''SetWeatherEx'' with the ctrl+h function.
And now you get use ''GetWeather'' everytime you want

For SetPlayerWeather:
Code:
forward SetPlayerWeatherEx(playerid, weatherid);
forward GetPlayerWeather(playerid);

new CurrentWeather[MAX_PLAYERS];

public SetPlayerWeatherEx(playerid, weatherid)
{
  SetPlayerWeather(playerid, weatherid);
  CurrentWeather[playerid] = weatherid;
}

public GetPlayerWeather(playerid)
{
  return CurrentWeather[playerid];
}
And replace all the ''SetPlayerWeather'' to ''SetPlayerWeatherEx'' with the ctrl+h function.
And now you get use ''GetPlayerWeather'' everytime you want
Reply


Messages In This Thread
Get Weather - by Justsmile - 24.04.2009, 22:51
Re: Get Weather - by Backwardsman97 - 24.04.2009, 23:14
Re: Get Weather - by Justsmile - 24.04.2009, 23:18
Re: Get Weather - by Backwardsman97 - 24.04.2009, 23:51
Re: Get Weather - by Justsmile - 25.04.2009, 07:12
Re: Get Weather - by -Davee- - 25.04.2009, 07:45
Re: Get Weather - by Andom - 25.04.2009, 08:54
Re: Get Weather - by Justsmile - 25.04.2009, 09:19

Forum Jump:


Users browsing this thread: 1 Guest(s)