18.04.2019, 14:29
Your SQL query saves the data for ALL vehicles, that are owned by player named XXX_YYY
Specifically this part:
Your vehicles need a unique identifier and you need to use that id to save them, not the owner.
I see you already have a column "id" so use it.
And for %i pass the id of the vehicle in the database.
That way only that specific vehicle will be saved.
Specifically this part:
Code:
WHERE owner = '%s'" ,
I see you already have a column "id" so use it.
Code:
WHERE id = '%i'" ,
That way only that specific vehicle will be saved.