Vehicle positions
#2

Your SQL query saves the data for ALL vehicles, that are owned by player named XXX_YYY

Specifically this part:
Code:
WHERE owner = '%s'" ,
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.

Code:
WHERE id = '%i'" ,
And for %i pass the id of the vehicle in the database.
That way only that specific vehicle will be saved.
Reply


Messages In This Thread
Vehicle positions - by TMapping - 18.04.2019, 11:28
Re: Vehicle positions - by AdamsLT - 18.04.2019, 14:29

Forum Jump:


Users browsing this thread: 1 Guest(s)