2025-01-05, 10:23 PM
Hi everyone,
Hi, I’m trying to make a UCP system for my SA-MP roleplay server, but I’m really new to this, and I’m stuck. My idea is that players will register on a website outside the game, and the website will save their data (like username and email) into a MySQL database. When they join the game, I want the server to get that data (like their email) and show it in something like a dialog or a
/stats command. I don’t really understand how to make the server read the data from the database and display it in-game. Can someone explain how to do this step by step?
Here’s what I’m trying to achieve:
Thanks in advance!
Hi, I’m trying to make a UCP system for my SA-MP roleplay server, but I’m really new to this, and I’m stuck. My idea is that players will register on a website outside the game, and the website will save their data (like username and email) into a MySQL database. When they join the game, I want the server to get that data (like their email) and show it in something like a dialog or a
/stats command. I don’t really understand how to make the server read the data from the database and display it in-game. Can someone explain how to do this step by step?
Here’s what I’m trying to achieve:
- Retrieve Data: How can I fetch the player’s email from the MySQL database when they log in?
- Display Data: How do I show the retrieved email in a dialog or a command (like/stats)?
- Syncing: What’s the best way to ensure that the data in the database matches the player in-game?
Thanks in advance!