Sign in to follow this  
RivaldisR

WiredPlayers code error, any solutions ?

Recommended Posts

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);

 

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.