SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 30/09/2010, 02:11 PM   #1
Bloodbutt
Little Clucker
 
Join Date: Sep 2010
Posts: 12
Reputation: 0
Default Real world weather help

I want to add realword weather to my script, whats the code to use?
Bloodbutt is offline  
Old 30/09/2010, 02:56 PM   #2
Seven.
Huge Clucker
 
Seven.'s Avatar
 
Join Date: Sep 2010
Posts: 253
Reputation: 0
Default Re: Real world weather help

pawn Code:
SetWeather(weatherid);
Seven. is offline  
Old 30/09/2010, 04:09 PM   #3
Stefan_Toretto
Huge Clucker
 
Join Date: Apr 2010
Location: Romania
Posts: 338
Reputation: 0
Default Re: Real world weather help

You can get Weather Ids from here http://wiki.sa-mp.com/wiki/WeatherID
Or here with pictures http://weedarr.wikidot.com/weather
__________________
Code:
mysql_query("DELETE `stupidity` FROM `earth`") OR die("idiots");
Stefan_Toretto is offline  
Old 04/10/2010, 01:40 PM   #4
Bloodbutt
Little Clucker
 
Join Date: Sep 2010
Posts: 12
Reputation: 0
Default Re: Real world weather help

thanks but what i ment was if its raining here in ireland that it will be raining on gta, on microsoft flight sim they have it set up, it downloads weather from a website, someone help me out?
Bloodbutt is offline  
Old 04/10/2010, 02:00 PM   #5
Mauzen
Banned
 
Join Date: Jun 2007
Location: Western Germany
Posts: 4,899
Reputation: 1597
Default Re: Real world weather help

MS flight sim is something different than samp
Well, now with the http support it should be possible, a nice idea. You would have to request the current weather on any weather website for a specific location (either submit the location via the url or post, depends on the site)
Then you need to filter the weather out of the html page, this could be quite tricky.
At last, compare the weather to all possible weather strings that the page can show, to find out, what weather it is.
Mauzen is offline  
Old 04/10/2010, 02:06 PM   #6
Gforcez
Gangsta
 
Gforcez's Avatar
 
Join Date: Jul 2010
Location: The Netherlands.
Posts: 721
Reputation: 377
Default Re: Real world weather help

Well, You can use a File to put the weather forecast in it, Maybe you can make something like that, That would be cool
Gforcez is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[HELP]Real Time and Real Weather djejsy Help Archive 0 21/12/2009 02:51 PM


All times are GMT. The time now is 07:25 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.