Jump to content

Base MySQL Gamemode [Login/Registration System]


Recommended Posts

Posted
46 minutes ago, javad_iran said:

how to get money in MySQL Gamemode [Login/Registration System]

the code not working: player.getMoney(250);

please help me :(

 

sorry for bad english...

Check the thread you created, I responded there.

Posted

I just updated this resource with various small changes, it isn't required to update if you have this downloaded already but it does fix some errors that popup because I wasn't handling errors and there are some small improvements

Changes:

  • You can now retrieve player money clientside (player.money changed to player.data.money)
  • Renamed the browser variable from browser1 to loginBrowser
  • Changed /updatemoney to /setmoney
  • Basic error handling for /setmoney (Should now return a message if you didn't put anything in or you didn't put a number in)
  • Fixed error for those who quit before logging in
  • Shortened player position values, now only goes to 2 decimal places
  • Added health and armour to the database to further show examples
  • Added /sethealth and /setarmour for more examples of usage
  • Added double checking for user passwords on registration to avoid typos in passwords when registering
  • Added error handling on MySQL queries

Resource should be up and available soon, if you don't want to wait just go to the Github link and download it from there.

  • Like 1
Posted
5 hours ago, javad_iran said:

Bug !!!

when death player , Server crash and closed ,

Sometimes this happens, and sometimes not

how to fix?!!

version 1.2

I don't even have a playerDeath event so I'm not sure why it would be crashing from that unless you added that yourself.

Posted
3 hours ago, MrPancakers said:

I don't even have a playerDeath event so I'm not sure why it would be crashing from that unless you added that yourself.

Bug 2 :

i am import maps to folder maps ,

all cars black color !!

how to fix? 

Posted
6 hours ago, javad_iran said:

Bug 2 :

i am import maps to folder maps ,

all cars black color !!

how to fix? 

This isn't a bug with my game mode, this is a separate issue that you already made a thread about. Only discuss things relating to my game mode here.

Posted
12 hours ago, TitoRukas said:

When I join the server I got this 2 errors, what can I do to fix them?

a3b5c261e51d46680650da293e620845.png63c57cac4f80eb20f1fbbfb272067c74.png

Looks like you got some bad code from another server, I believe you need to delete your client_resources folder

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