View Single Post
Old 31/01/2020, 08:34 PM   #4
xRadical3
Gangsta
 
xRadical3's Avatar
 
Join Date: May 2017
Location: Iran
Posts: 563
Reputation: 20
Default Re: MySQL load vehicles issue

So,
pawn Code:
for(new j = 1; j < sizeof(CarInfo); j++)
i think this must be
pawn Code:
foreach(new j : Vehicle)
//or
for(new j = 1; j < GetVehiclePoolSize(); j++)

CarInfo new like this?:
pawn Code:
new CarInfo[MAX_VEHICLES][CarEnum];
Right?

Your second mistake is use break;
This break the loop and not continue and car id in database right but in server diffrent ids...
xRadical3 is online now   Reply With Quote