This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

[INFO] Fakemeta & Ham detailed function descriptions and examples


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 07-26-2014 , 19:49   Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
Reply With Quote #37

Fakemeta function:
Code:
EngFunc_Time


Description:
Returns time in seconds (float) since the game started. Rather the same as tickcount(). It seems to not be used by the mod (it's useless anyway).
Usage:

PHP Code:
new Float:flElapsedTime Float:engfunc(EngFunc_Time)
server_print("%.2f seconds passed since the server started"flElapsedTime
PHP Code:
new Float:flStartTime Float:engfunc(EngFunc_Time)
MyVeryBigFunction()
AnotherHugeFunction()
SpamArkshineSteamChat()
server_print("Execution time: %f"Float:engfunc(EngFunc_Time) - flStartTime
Parameters:
no params for this function

Another not really important function, but as many others, it's unknown for many scripters.
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:42.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode