UpdatePos
#6

Got it, Databases ids start with one, loops start with 0, to fix this equal them, by increasing the loop by 1
pawn Код:
VehiclesInfo[carid][vID] ++;
mysql_format(handle, query, sizeof(query), "UPDATE `vehicles` SET `PositionX` = '%f', `PositionY` = '%f', `PositionZ` = '%f', `Angle` = '%f' WHERE ID = '%i'", VehiclesInfo[carid][vPositionX], VehiclesInfo[carid][vPositionY], VehiclesInfo[carid][vPositionZ], VehiclesInfo[carid][vAngle], VehiclesInfo[carid][vID]);
mysql_query(handle, query);
and is that the only output you got ?. you're probably not looping through correctly them or that's all the vehicles you're saving ?
Reply


Messages In This Thread
UpdatePos - by norton2 - 22.01.2015, 07:25
Re: UpdatePos - by XXCrazyMan707XX - 22.01.2015, 07:36
Re: UpdatePos - by norton2 - 22.01.2015, 08:08
Re: UpdatePos - by xVIP3Rx - 22.01.2015, 12:05
Re: UpdatePos - by norton2 - 22.01.2015, 12:53
Re: UpdatePos - by xVIP3Rx - 22.01.2015, 12:56
Re: UpdatePos - by norton2 - 22.01.2015, 13:04
Re: UpdatePos - by xVIP3Rx - 22.01.2015, 13:11
Re: UpdatePos - by norton2 - 22.01.2015, 13:49
Re: UpdatePos - by BroZeus - 22.01.2015, 14:17

Forum Jump:


Users browsing this thread: 2 Guest(s)