Author Topic: Utime -- Show how long your players have been connected this session and total  (Read 554769 times)

0 Members and 2 Guests are viewing this topic.

Offline Sc00by22

  • Jr. Member
  • **
  • Posts: 98
  • Karma: 0
Is there a way to hide this lua error, I don't want people thinking my server is broken

Offline blacksythe

  • Newbie
  • *
  • Posts: 38
  • Karma: -1
im getting Timer Error: attempt to index a nil value spammed in my server console

Offline Sc00by22

  • Jr. Member
  • **
  • Posts: 98
  • Karma: 0
Where abouts is the data stored for each person? I'm moving to a new server and want to take the time online with me

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
It's stored in the SQL DB. Just copy the database over and you'll be golden.
Experiencing God's grace one day at a time.

Offline Sc00by22

  • Jr. Member
  • **
  • Posts: 98
  • Karma: 0
The problem is I never new my server had an SQL DB where can i download it

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
It's in the garrysmod root directory.
Experiencing God's grace one day at a time.

Offline spbogie

  • Ulysses Team Member
  • Sr. Member
  • *****
  • Posts: 456
  • Karma: 41
I have not failed. I've just found 10,000 ways that won't work. - Thomas A. Edison
I reject your reality and substitute my own. - Adam Savage

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Update! We finally fixed that bug you've all been annoyed with.

Quote from: changelog
v1.30 - *(05/16/08)*
   * [ADD] Some utility functions to make getting session and total times easier.
   * [FIX] A bug introduced by one of garry's updates.
Experiencing God's grace one day at a time.

Offline Sc00by22

  • Jr. Member
  • **
  • Posts: 98
  • Karma: 0
Thanks for the new update!

Offline factice

  • Newbie
  • *
  • Posts: 8
  • Karma: 0
I'v a problem  :-\

The time isn't saved, when a player join, leave, and rejoin, the time is reseted  :-\

My server :

77.111.203.16:27015

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Sounds like you have a problem with your sqlite DB.
Experiencing God's grace one day at a time.

Jaybuz

  • Guest
I get this error a few times when I start my server:

Code: [Select]
autorun/cl_utime.lua:152: attempt to perform arithmetic on field 'TargetSize' (a nil value)

Jaybuz

  • Guest
Hmm nvm it's gone now, I think it might of been because I had one of UTime files open in notepad?

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Don't think so.
Experiencing God's grace one day at a time.

Offline factice

  • Newbie
  • *
  • Posts: 8
  • Karma: 0
I'v deleted the sv.db file and now it's ok  ;D