Mysql, no create vehicles...
#2

Never re-use variables to do 2 different things in a loop.
You used "i" first to loop through your rows, then after loading all the data from the first vehicle, you re-use "i" for the vehicle-id.
It will mess up your loop and you'll end up loading only one vehicle.

Also, the first row is row 0, not 1.
Reply


Messages In This Thread
Mysql, no create vehicles... - by Unrea1 - 30.05.2015, 08:07
Re: Mysql, no create vehicles... - by PowerPC603 - 30.05.2015, 11:19
Re: Mysql, no create vehicles... - by J4Rr3x - 30.05.2015, 12:25
Re: Mysql, no create vehicles... - by Konstantinos - 30.05.2015, 12:34
Re: Mysql, no create vehicles... - by J4Rr3x - 30.05.2015, 14:06
Re: Mysql, no create vehicles... - by Unrea1 - 30.05.2015, 21:19
Re: Mysql, no create vehicles... - by Unrea1 - 30.05.2015, 22:12
Re: Mysql, no create vehicles... - by J4Rr3x - 31.05.2015, 08:40

Forum Jump:


Users browsing this thread: 1 Guest(s)