Not Update
#7

pawn Code:
mysql_format(handle, query, sizeof(query), "UPDATE vehicles SET Owner = '%i', ServerID = '%i', Slot = '1' WHERE ID = '%i'", idc, VehiclesInfo[TotalVeh][vServerID], VehiclesInfo[TotalVeh][vID]);
Obviously, the last variable, VehiclesInfo[TotalVeh][vID], does not store the correct database ID. I'm guessing that vID gets updated when the vehicles load from database, so you will have to update it manually after adding the vehicle with something like this: https://sampwiki.blast.hk/wiki/MySQL/R33#cache_insert_id
Reply


Messages In This Thread
Not Update - by norton2 - 05.02.2015, 23:04
Re: Not Update - by Maximus0 - 05.02.2015, 23:13
Re: Not Update - by Sime30 - 06.02.2015, 00:46
Re: Not Update - by Abagail - 06.02.2015, 00:49
Re: Not Update - by Maximus0 - 06.02.2015, 00:52
Re: Not Update - by norton2 - 06.02.2015, 07:54
Re: Not Update - by HazardouS - 06.02.2015, 10:05
Re: Not Update - by WopsS - 06.02.2015, 10:06
Re: Not Update - by Maximus0 - 06.02.2015, 16:18

Forum Jump:


Users browsing this thread: 1 Guest(s)