Stuck On Weather Texdraws
#1

I dont know why this code didnt work.

First, i make a statement about textdraw will change based on weather.

Example : If weather rainy, the textdraw will show Rainy.

My code.

PHP код:
new Text:WeatherWeathers;
       
//OnGameModeInit
Weather TextDrawCreate(556.000000126.000000"");
TextDrawAlignment(Weather2);
TextDrawBackgroundColor(Weather255);
TextDrawFont(Weather2);
TextDrawLetterSize(Weather0.4200001.600000);
TextDrawColor(Weather, -1);
TextDrawSetOutline(Weather1);
TextDrawSetProportional(Weather1);
TextDrawSetSelectable(Weather0);
SetTimer("RandomWeathers"60000*3true);
//Function
forward RandomWeathers();
public 
RandomWeathers()
{
Weathers random(20);
SetWeather(Weathers);
switch(
Weathers)
{
              case 
0:
            {
                new 
string[50];
                
format(stringsizeof string"Sunny");
                
TextDrawSetString(Weatherstring);
            }
           case 
1:
            {
                new 
string[50];
                
format(stringsizeof string"Sunny");
                
TextDrawSetString(Weatherstring);
            } 
Anyone know why this code didnt work?
Reply


Messages In This Thread
Stuck On Weather Texdraws - by AgusZ - 04.11.2017, 18:24
Re: Stuck On Weather Texdraws - by TrueThing - 04.11.2017, 19:02
Re: Stuck On Weather Texdraws - by ExTaZZ69 - 04.11.2017, 19:06
Re: Stuck On Weather Texdraws - by AgusZ - 04.11.2017, 19:46

Forum Jump:


Users browsing this thread: 1 Guest(s)