GetServerTickRate

From SA-MP Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 06:57, 19 April 2014
RoboN1X (Talk | contribs)
(Yup, it's still showing a value when gmx used)
← Previous diff
Revision as of 08:29, 19 April 2014
Dugi (Talk | contribs)

Next diff →
Line 1: Line 1:
{{Scripting}} {{Scripting}}
-{{AddedIn|0.3z|R1|function}}+{{AddedIn|0.3z|function}}
{{Description|Gets the tick rate (like FPS) of the server.}} {{Description|Gets the tick rate (like FPS) of the server.}}

Revision as of 08:29, 19 April 2014



This {{{3}}} was added in SA-MP 0.3z function and will not work in earlier versions!


Description:

Gets the tick rate (like FPS) of the server.


Parameters:
This function has no parameters.


Return Values:

The server tick rate (per second). Returns 0 when the server is just started


printf("The current server tick rate is: %i", GetServerTickRate());

Related Functions

The following functions may be useful, as they are related to this function in one way or another.

  • GetNetworkStats: Gets the servers networkstats and saves it into a string.
In other languages