Hi, i’m editing the mod UTime (stores playtime of players on the server) to use a SQL database, so both my server have the same time for each player and i got the sql part working but whenever somebody joins I get this error in my server console:
ERROR: Hook ‘PlayerHasJoined’ Failed: autorun/sv_utime.lua:20: Error: Invalid Connection
Removing Hook ‘PlayerHasJoined’
The hook is meant to start a function which loads that players acount when they join, or create a new one. This is the hook itself: hook.Add( “PlayerInitialSpawn”, “PlayerHasJoined”, LoadAccount )
Thanks for any help.