Jump to content

Example script (MySQL)


Recommended Posts

  • 2 weeks later...
  • 5 weeks later...
  • 5 weeks later...
  • 1 month later...
3 hours ago, AlexanderDem said:

Good evening. Help me to understand the installation of your mod. I do not understand where the packege.js file is. What npm packages should I install for work?

for mysql open cmd, enter "cd [folder directory {e.g: C:\RAGEMP\Server}]" and type "npm install mysql"

  • Sad 1
Link to comment
Share on other sites

  • 1 month later...

By the way, inside players.js, you've forgotten to add in the Admin column inside server_players

DB.Handle.query("CREATE TABLE IF NOT EXISTS `server_players` (`ID` int(11) NOT NULL,`Name` varchar(24) NOT NULL,`Password` varchar(128) NOT NULL, `Admin` int(3) NOT NULL) ENGINE=InnoDB DEFAULT CHARSET=latin1;", function() { } );

Line 43, I haven't tried it but that should probably fix it.

Edited by MrPancakers
Link to comment
Share on other sites

  • 8 months later...

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