Jump to content
  • 0

Correct Use of Gettimetick(2) HELP!!


Question

3 answers to this question

Recommended Posts

  • 0
Posted
*gettimetick(<tick type>)

This function will return a tick depending on <tick type>:
 0: The server's tick, a measurement in milliseconds used by the server's timer
    system. This tick is an unsigned int which loops every ~50 days.
 1: The time, in seconds, since the start of the current day.
 2: The system time in UNIX epoch time, or the number of seconds elapsed since
    January 1st, 1970. Useful for reliably measuring time intervals.

it return your server time tick, not your npc time

  • 0
Posted
On 11/27/2023 at 12:41 AM, Emistry said:
*gettimetick(<tick type>)

This function will return a tick depending on <tick type>:
 0: The server's tick, a measurement in milliseconds used by the server's timer
    system. This tick is an unsigned int which loops every ~50 days.
 1: The time, in seconds, since the start of the current day.
 2: The system time in UNIX epoch time, or the number of seconds elapsed since
    January 1st, 1970. Useful for reliably measuring time intervals.

it return your server time tick, not your npc time

I do not understand? it takes the exact time since I interact to npc or whatever holding the variable?

  • 0
Posted
10 hours ago, eloscar23 said:

I do not understand? it takes the exact time since I interact to npc or whatever holding the variable?

It takes a number from 0 to 2 and depending on which number you give it, it returns one of the described values.
 

Join the conversation

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

Guest
Answer this question...

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...