Jump to content

time/clock gresit

Recommended Posts

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


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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