SA-MP Forums Archive
[Include] MWeather - Improved and unique weather functions - Including weather zones and Real World Weather - alpha/test/preview - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] MWeather - Improved and unique weather functions - Including weather zones and Real World Weather - alpha/test/preview (/showthread.php?tid=181897)

Pages: 1 2


Re: MWeather - Improved and unique weather functions - Including weather zones and Real World Weather - alpha/test/previ - Michael@Belgium - 26.04.2011

Nice ! I like the AddWeatherObserver()
I really searched for real weather

THANKS


Re: MWeather - Improved and unique weather functions - Including weather zones and Real World Weather - alpha/test/previ - ihatetn931 - 28.04.2011

Hmm i checked this out.

May i asked where the php file that's listed in the include? I notice that's on a host. Shouldn't we get the file so we can put it on our own host?

www.mauzen.kilu.de/a.php


Re: MWeather - Improved and unique weather functions - Including weather zones and Real World Weather - alpha/test/previ - Luis- - 14.05.2011

I have been looking at this, I have the weather for my home town but how can I set it to check the weather and update it say for every 5 minutes?


Re: MWeather - Improved and unique weather functions - Including weather zones and Real World Weather - alpha/test/previ - ihatetn931 - 14.05.2011

Quote:
Originally Posted by -Luis
Посмотреть сообщение
I have been looking at this, I have the weather for my home town but how can I set it to check the weather and update it say for every 5 minutes?
Read the wiki?

https://sampwiki.blast.hk/wiki/Mweather


Re: MWeather - Improved and unique weather functions - Including weather zones and Real World Weather - alpha/test/previ - Luis- - 14.05.2011

Quote:
Originally Posted by ihatetn931
Посмотреть сообщение
Already done that.


Re: MWeather - Improved and unique weather functions - Including weather zones and Real World Weather - alpha/test/previ - ihatetn931 - 14.05.2011

pawn Код:
AddWeatherObserver(url[], 300000)



Re: MWeather - Improved and unique weather functions - Including weather zones and Real World Weather - alpha/test/previ - Michael@Belgium - 14.05.2011

Quote:
Originally Posted by -Luis
Посмотреть сообщение
Already done that.
Well, you didn't read it then

It's there ! xD
You have to use this:
pawn Код:
AddWeatherObserver(url[],updatetime);
url = choose your country at THIS SITE f.e.: http://weather.yahoo.com/belgium/wes...bruges-967974/ (its my city ;p)
updatetime: so you want 5 minutes; 300000 milliseconds = 5 min

Good luck


Re: MWeather - Improved and unique weather functions - Including weather zones and Real World Weather - alpha/test/previ - Tachibana - 22.06.2011

And I get shite loads of errors when complied the .inc?


Respuesta: MWeather - Improved and unique weather functions - Including weather zones and Real World Weather - alpha/tes - sicol - 07.09.2012

Hello. Will this include no longer works because the infinite strip me PHP code errors, and the server does not work climate is always 0.


Re: MWeather - Improved and unique weather functions - Including weather zones and Real World Weather - alpha/test/previ - doreto - 05.01.2013

Quote:
Originally Posted by Krumpleeh
View Post
Umm, i couldn't really figure out yet, that where should i put the php file... In pawno/include as well?
Its PHP file you put him into your website


Re: MWeather - Improved and unique weather functions - Including weather zones and Real World Weather - alpha/test/previ - Mauzen - 08.01.2013

Yep, the default location in the script leads to the php script on my server, however to reduce traffic and lag I always recommend hosting that file yourself and using this instead, whenever you got access to a webserver. I also cant guarantee for the script to be always available on my server.


Re : MWeather - Improved and unique weather functions - Including weather zones and Real World Weather - alpha/test/prev - xDaidal0S - 08.01.2013

Nice job , thanks for this.


Re: MWeather - Improved and unique weather functions - Including weather zones and Real World Weather - alpha/test/previ - Krumpleeh - 09.01.2013

Oh, then i'm a lil' bit rookie about php codes...
Aaaaand, how can i host the file exactly...?


Re: MWeather - Improved and unique weather functions - Including weather zones and Real World Weather - alpha/test/previ - Mauzen - 10.01.2013

You just need to upload it to some public webspace (that allows php scripts), mostly theres a "www" folder, or you got direct ftp access to that. After uploading the script should be available at "www.your-address.com/script.php"
You can also create folder on that webspace, so the address will be "www.your-address.com/foldername/script.php"
When you got that, and it doesnt give an error when accessing that link (you can also test http://www.your-address.com/script.p...OO_WEATHER_URL and see if it returns a weather state), go to line 131 in the script
pawn Code:
format(RealWeather[wid][WUrl], 192, "www.mauzen.net/utils/a.php?URL=%s", url);
and change that "www.mauzen.net/utils/a.php" with your location. The ?URL=%s needs to stay the same, as thats information that is passed to the script.
Should work now!


Re: MWeather - Improved and unique weather functions - Including weather zones and Real World Weather - alpha/test/previ - KazutoSensei - 19.03.2017

Good job, I will use it and hope it will be get more updated in future.

PS: I know the last post is from 2014, but this include is awesome!


Re: MWeather - Improved and unique weather functions - Including weather zones and Real World Weather - alpha/test/previ - TitanX - 19.03.2017

delete this
PHP код:
format(RealWeather[wid][WUrl], 192"www.mauzen.net/utils/a.php?URL=%s"url); 
or your website will got spammed/abused/ddosed by some idiots


Re: MWeather - Improved and unique weather functions - Including weather zones and Real World Weather - alpha/test/previ - oMa37 - 19.03.2017

Quote:
Originally Posted by TitanX
Посмотреть сообщение
delete this
PHP код:
format(RealWeather[wid][WUrl], 192"www.mauzen.net/utils/a.php?URL=%s"url); 
or your website will got spammed/abused/ddosed by some idiots
I assume that the domain period has expired, website is not exist anymore.


Re: MWeather - Improved and unique weather functions - Including weather zones and Real World Weather - alpha/test/previ - TitanX - 19.03.2017

Quote:
Originally Posted by oMa37
Посмотреть сообщение
I assume that the domain period has expired, website is not exist anymore.
too late xD