08.05.2016, 19:48
Select query is right, insert one however should be
Edit: select one could be this too, since we really don't need the slot to giveplayerweapon
Quote:
"INSERT INTO weapons VALUES (%d, %d, %d, %d) ON DUPLICATE KEY UPDATE Weaponid=%d , Ammo=%d" |
Quote:
SELECT Weaponid, Ammo FROM weapons WHERE Userid=%d |