Jump to content

[JS] MySQL Error, player.name not defined..


LukaTFU

Recommended Posts

Well yeah, where is ‘player’ defined for player.name to work? You can’t get a player object out of thin air. Considering the query isn't in an event or anything, how can it get a players name if nobody is even connected? All that code not sitting inside an event is being ran as soon as the server starts

Edited by MrPancakers
Link to comment
Share on other sites

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...