Jump to content

WiredPlayers code error, any solutions ?


Recommended Posts

Posted

Servers starts but when you logging in on login screen I am keep getting  this error 

unknown.png

Here is the code

// Set the hour from the server
      let time = serverTime.split(':');
      let hours = parseInt(time[0]);
      let minutes = parseInt(time[1]);
      let seconds = parseInt(time[2]);
        mp.game.time.setClockTime(hours, minutes, seconds);

 

Posted

Like the error says serverTime = null meaning it has no value. You need to debug how you're assigning a value to serverTime because it has no value when you're using it.

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