AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   get_gametime + function. (https://forums.alliedmods.net/showthread.php?t=21917)

Jordan 12-13-2005 17:55

get_gametime + function.
 
Yeah I used the get_gametime function, and I figured that it would return the user's time in the game, right? Not so sure if it does... also, I get a number of arguments does not match definition error with this...

Code:
new Float:you = get_gametime(id)

I assumed that this would return the user's gametime, but does this return the entire server's gametime, and you can't use the id (which would explain the error). Help if you can, please + thanks :)

Xanimos 12-13-2005 18:08

Quote:

Description

- get_gametime - Returns a game time

Syntax

- Float: get_gametime ( )
Your looking for get_player_time()

Jordan 12-13-2005 18:11

AHA! You mean get_user_time but I know what you mean. Thanks! :)

P.S. - Is flags set at -1 ok?

Xanimos 12-13-2005 18:38

when its in [] those just leave it blank if you dont know what to put

aLpiNe^cLuBz 12-13-2005 18:59

Doesn't "id" usually go in the []?

Jordan 12-13-2005 20:05

it would be
Code:
get_user_time(id)

yes :)

and Suicid3:

Quote:

If the flag is set, the result is returned minus the connection time.
That's what I want, which is the flags o.O - I put -1 and it compiles, but I'm not sure if it works :P oh well, I'll check it this weekend. :)

TY :D


All times are GMT -4. The time now is 16:09.

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