Donboo

Example script (MySQL)

Recommended Posts

MrBoolean    3

I submitted some pull requests to fix some bugs I found while looking through this - overall pretty nice for someone that's starting out to jump into it w/ an example!

Nice work.

  • Like 2

Share this post


Link to post
Share on other sites

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?

Edited by AlexanderDem

Share this post


Link to post
Share on other sites
Armyw0w    23
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"

Share this post


Link to post
Share on other sites
MrPancakers    2

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

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

  • Recently Browsing   0 members

    No registered users viewing this page.