Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

Inquiry on MySQL database, adding multiple entries:

$
0
0
Hi,

So I made a system to attach weapon objects to a players person when they have a weapon that isn't in their hands. There are 18 possible weapons that could be visible right now.

So of course, players would be able to edit these weapons positions. What I'm wondering is how I could make a database to store these values for each weapon ID?

When a player joins the server, there are default values each weapon is set to. Say for example, they edit the position of a weapon they have. I want to add to the database the new positions and a new weapon ID entry. If they edit a PRE-EDITED and ADDED weapon ID, how can I know it exists to UPDATE instead of INSERT into the database?

What are possible ways of doing this?

Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>