Jump to content

Which event fires first?


GhostXoP

Recommended Posts

Guest Guest4401
Everytime i try and set onPlayerQuit to log the player out and save stats, its too late and the pointer to the account goes nil.

It might be because you are logging out the player and then trying to save stats, which obviously won't work, because the player has to be logged in.

As far as I know, getting the player (i.e, source), as well as account (getPlayerAccount(source)) is possible in this event.

Link to comment

server event is fired first I'm almost sure

because client doesnt exist without server. server needs to send data (i.e playing quitting) to client so server knows about the quit long before the client does (might even be a few milliseconds)

Dunno how that helps you, but I just responded to the original question

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...