In my buy script it adding twoice the data in the DB

When im buying cars , my car are added 2 times in to the database , a similar problem was when i try to cash out more money then i can , that give me the error twoice

Is it in a loop of some sort?

Looks like it is , look what its looks likesave

I know what it would look like it’s just wherever you are calling the Sal query to save the vehicle is either in a loop and called twice or it is called 2 times in different parts of the script…

how can i fix that? have you an idea?

I can’t fix it. I am driving. But I told you what to check for.