MYSQL - Associate vehicle IDs
#7

Veicolo[id][ID] holds the unique SQL ID for each vehicle. It's only used for the queries.
For the real vehicle ID in-game, it's in Veicolo[id][vO].

By the way, what both Vince and mamorunl say is that when loading from mysql the first valid row is 0 and you start from 1 which you skip a vehicle (not what you want).

Quote:
Originally Posted by mamorunl
Посмотреть сообщение
++id increments the value before the loop starts. So the 'id' variable (not the h variable) starts at id 2, not at 1.
It doesn't matters in loops as it still returns the old value.
Reply


Messages In This Thread
MYSQL - Associate vehicle IDs - by DarkLouis - 10.06.2015, 08:14
Re: MYSQL - Associate vehicle IDs - by Vince - 10.06.2015, 08:18
Re: MYSQL - Associate vehicle IDs - by DarkLouis - 10.06.2015, 08:20
Re: MYSQL - Associate vehicle IDs - by mamorunl - 10.06.2015, 08:40
Re: MYSQL - Associate vehicle IDs - by DarkLouis - 10.06.2015, 08:44
Re: MYSQL - Associate vehicle IDs - by mamorunl - 10.06.2015, 08:51
Re: MYSQL - Associate vehicle IDs - by Konstantinos - 10.06.2015, 09:01
Re: MYSQL - Associate vehicle IDs - by DarkLouis - 10.06.2015, 11:06
Re: MYSQL - Associate vehicle IDs - by DarkLouis - 10.06.2015, 11:15
Re: MYSQL - Associate vehicle IDs - by DarkLouis - 10.06.2015, 11:53

Forum Jump:


Users browsing this thread: 1 Guest(s)