MySQL Problem
#6

To avoid OOB in this case, you can do this;
Assuming that is vehicleInformation[MAX_VEHICLES]....
pawn Код:
if(vid > MAX_VEHICLES) return SendClientMessage(playerid, -1, "[WARNING!] mysql_insert_id returned a value higher then MAX_VEHICLES.");
If you are using auto increment in tables and its not giving right ID, you should;
ALTER TABLE `MyTable` AUTO_INCREMENT = 1, it will reset it.
Reply


Messages In This Thread
MySQL Problem - by Joshman543 - 02.06.2013, 21:31
Re: MySQL Problem - by Vince - 02.06.2013, 21:53
Re: MySQL Problem - by Joshman543 - 03.06.2013, 00:32
Re: MySQL Problem - by Richie© - 03.06.2013, 00:37
Re: MySQL Problem - by Joshman543 - 03.06.2013, 23:38
Re: MySQL Problem - by Richie© - 04.06.2013, 02:11

Forum Jump:


Users browsing this thread: 1 Guest(s)