x86 Posted February 8, 2009 Share Posted February 8, 2009 (edited) Hi, OUTDATED: This topic will be updated in days! Look at the resource: https://community.multitheftauto.com/index.html?p ... ils&id=243 Source(version: 1.0.0209): http://server.busign.nl/dev/weather.phps Only edit this in realweather.lua: local country = "Heerlen" -- If city isn't in the Netherlands use: "city, Country".. Is the city in the Netherlands, use "City", Example: "Amsterdam" local showWeatherText = true -- Show weather with a text function in-game (Temp, Weather, City/Country) If you callRemote to server.busign.nl/dev/weather.php it return this to MTA(server, script): int weatherid, int temp, string weathername, string county This script is tested with MTA 1.0 , it must work on DP2.x Have fun!! Edited October 13, 2009 by Guest Link to comment
Gamesnert Posted February 9, 2009 Share Posted February 9, 2009 Sounds pretty interesting lol. Wouldn't it be a good idea to add support for other countries too? ^^ Link to comment
x86 Posted February 9, 2009 Author Share Posted February 9, 2009 Sounds pretty interesting lol. Wouldn't it be a good idea to add support for other countries too? ^^ Released @ this topic Link to comment
Gamesnert Posted February 13, 2009 Share Posted February 13, 2009 (edited) I often get this error: (especially at the start) EDIT: Ok scratch that, I apparently weren't patient enough to see it happening with auto-refreshing lol. EDIT2: Scratch it back, it does seem to happen mostly on start lol... ERROR: ...athmatch/resources/realweather/realweather.lua:105: bad argument #1 to 'find' (string expected, got nil) Some extra info: - City is Harmelen (the Netherlands, thus I just entered Harmelen) - This usually happens at the start of a resource - MTA version is nightly r309 - Quite frankly, I edited the code quite a bit. But nothing related to this error, since with the unedited, this also sometimes happened... (I even switched back to check that) I more like replaced the textarea with dx text and a dx rectangle, made a toggle to toggle the thing on or off, and a command to update the weather report manually. Hope it gets fixed soon. ^^ Edited February 14, 2009 by Guest Link to comment
x86 Posted February 14, 2009 Author Share Posted February 14, 2009 (edited) ERROR: ...athmatch/resources/realweather/realweather.lua:105: bad argument #1 to 'find' (string expected, got nil) Fixed that bug, now scripting directx text, and layout Bugfix: http://mta.pastebin.com/m5cfb0bbe (Edited 2 functions!!) Edited February 14, 2009 by Guest Link to comment
Scarface Posted February 14, 2009 Share Posted February 14, 2009 Great script I love it keep it up! Link to comment
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