Help temperature
#1

How to make something like this about the temperature where is it based on or how to make this system
Reply
#2

This is something very complex, but the Season must be based on weather ids and the temperature must be random like:

Winter > Temperatures Between -17 - +7
Summer > +15 - +34
Reply
#3

I know but you know how?

I have already Date and season, but i dont know how to do temperature the season is based on the weather
Reply
#4

Reply
#5

I'm just Typing this here on the forum but i think you could do something with this sample:

pawn Код:
#define MAX_TEMP 7
#define MIN_TEMP -17

switch(GetSeason)
{
    case 0:{
       new Temp=(random(MAX_TEMP-MIN_TEMP)+MIN_TEMP);
    }
}


stock GetSeason(){
   //Edit this code read/detect your own season code's and functions!
   return 0;
   //return 1;
   //return 2;
   //return 3;

return -1;
}
It's written quickly from scratch and NOT garantued to work i did not had the time to test it,
but i'm very sure you can work on from this

Good luck

[EDIT]

Offcourse you use the 'switch' section in your own timer, refresh or whet ever
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)