Jump to content

[REL] RealWeather 1.0.0209


x86

Recommended Posts

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 by Guest
Link to comment

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 by Guest
Link to comment
  • 9 years later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...