Jump to content

Recommended Posts

Posted

salut, am facut un fs de timp si date, pe localhost mergea perfect, cand l-am pus pe host da ora gresita, la fel si time, gen da 5/08/2021 si ora 21.

Posted

Cel mai probabil serverul pe care iti este hostat scriptul se afla in alta locatie din lume si nu in romania. Daca nu este vps/dedicat ca sa ai access sa faci modificari la ora/data o solutie ar fi sa iti faci o functie care corecteaza ora/data si iti retuneaza aceasta informatie corectat ca o poti pune in acel textdraw.

O sa revin cu edit cu un exemplu dupa ce termin munca si am acces la pc personal

Edit: Poti folosi acest include e mult mai rapid decat sa iti generezi o functie de corectie si sa iei in calcul mai multe lucruri inclusiv ani bisecti https://github.com/Agneese-Saini/SA-MP/blob/master/pawno/include/timestamp.inc

In loc de gettime/getdate poti folosi ParseTimestamp

new year, month, day, hour, minute, second;
ParseTimestamp(gettime(), year, month, day, hour, minute, second, 3); // 3 este Hour GMT este timezone in momentul de fata Romania are GMT+3 pe timp de vara, la iarna o sa fie GMT+2

 

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...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.