DazzaJay Posted February 5, 2008 Posted February 5, 2008 Basically, im bored, And i noticed that the admin panel only had 19 weathers, but the wiki showed that there was 45..... so i went thru and added this to the weathers.xml "0" name="Blue Sky, Sunny" /> "1" name="Blue Sky, Sunny" /> "2" name="Blue Sky, Clouds" /> "3" name="Blue Sky, Clouds" /> "4" name="Blue Sky, Clouds" /> "5" name="Blue Sky, Clouds" /> "6" name="Blue Sky, Clouds" /> "7" name="Blue Sky, Clouds" /> "8" name="Storming" /> "9" name="Cloudy and Foggy" /> "10" name="Clear Blue Sky" /> "11" name="Sunny, Scorching Hot" /> "12" name="Very Dull, Colourless, Hazy" /> "13" name="Very Dull, Colourless, Hazy" /> "14" name="Very Dull, Colourless, Hazy" /> "15" name="Very Dull, Colourless, Hazy" /> "16" name="Dull, Cloudy, Rainy" /> "17" name="Sunny, Scorching Hot" /> "18" name="Sunny, Scorching Hot" /> "19" name="Sandstorm" /> "20" name="Foggy, Greenish" /> "21" name="Very Dark, Gradiented Skyline, Purple" /> "22" name="Very Dark, Gradiented Skyline, Green" /> "23" name="Pale Orange" /> "24" name="Pale Orange" /> "25" name="Pale Orange" /> "26" name="Pale Orange" /> "27" name="Fresh Blue" /> "28" name="Fresh Blue" /> "29" name="Fresh Blue" /> "30" name="Dark, Cloudy, Teal" /> "31" name="Dark, Cloudy, Teal" /> "32" name="Dark, Cloudy, Teal" /> "33" name="Dark, Cloudy, Brown" /> "34" name="Blue, Purple, Regular" /> "35" name="Dull Brown" /> "36" name="Bright, Foggy, Orange" /> "37" name="Bright, Foggy, Orange" /> "38" name="Bright, Foggy, Orange" /> "39" name="Extremely Bright" /> "40" name="Blue, Purple, Cloudy" /> "41" name="Blue, Purple, Cloudy" /> "42" name="Blue, Purple, Cloudy" /> "43" name="Dark Toxic Clouds " /> "44" name="Black, White Sky" /> "45" name="Black, Purple Sky" /> then i changed a line in admin_main.lua From this: if ( ( source == aTab3.WeatherInc ) and ( id < 19 ) ) then guiSetText ( aTab3.Weather, ( id + 1 ).." ("..getWeatherNameFromID ( id + 1 )..")" ) To this: if ( ( source == aTab3.WeatherInc ) and ( id < 45 ) ) then guiSetText ( aTab3.Weather, ( id + 1 ).." ("..getWeatherNameFromID ( id + 1 )..")" ) and its added all the new weathers in to the panel, and i can select them, but still only 1 thru 19 work, 20 thru 45 just say "Error setting weather" so what have i missed?
lil Toady Posted February 5, 2008 Posted February 5, 2008 By my researches mta only works with those 20 ids (0-19) that's why only they were in, however that hardcoded weathers count should have not been there tbh, already fixed that and about the weathers, ill report it, might be a bug
DazzaJay Posted February 5, 2008 Author Posted February 5, 2008 well, i have seen some servers running sky / weathers that are not in the admin panel, which makes me wonder, is there another way around it?
norby89 Posted February 5, 2008 Posted February 5, 2008 well, i have seen some servers running sky / weathers that are not in the admin panel, which makes me wonder, is there another way around it? they might have used this http://development.mtasa.com/index.php? ... kyGradient
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now