[Include] MWeather - Improved and unique weather functions - Including weather zones and Real World Weather - alpha/test/preview
#21

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

THANKS
Reply
#22

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
Reply
#23

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?
Reply
#24

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
Reply
#25

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

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

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
Reply
#28

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

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.
Reply
#30

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
Reply
#31

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.
Reply
#32

Nice job , thanks for this.
Reply
#33

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

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!
Reply
#35

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!
Reply
#36

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
Reply
#37

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.
Reply
#38

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


Forum Jump:


Users browsing this thread: 3 Guest(s)