loading cars problem -
fordawinzz - 12.01.2012
I'm getting that error and it says it can't run the command right now. what's the problem?
I stored the results..
Re: mysql command out of sync -
[HiC]TheKiller - 12.01.2012
Posting your code may help us determine what's wrong with the script
.
Re: mysql command out of sync -
fordawinzz - 12.01.2012
pawn Код:
stock initiateCars()
{
for(new id = 1; id < sizeof(CarInfo); id++)
{
format(Query, sizeof(Query), "SELECT * FROM `cars` WHERE `id` = %d", id);
mysql_query(Query);
mysql_store_result();
if(!mysql_num_rows()) continue;
if(mysql_fetch_row_format(Query, "|"))
{
sscanf(Query, "p<|>e<is[24]ffffffffiis[24]s[24]is[32]s[32]iiiiiiiiiiiiiiiiiiiii>", CarInfo[id]);
CreateVehicle(CarInfo[id][cModel], CarInfo[id][cLocationx], CarInfo[id][cLocationy], CarInfo[id][cLocationz]+1.0, CarInfo[id][cAngle], CarInfo[id][cColorOne], CarInfo[id][cColorTwo], 600000);
gCarLock[id] = 1;
SetVehicleNumberPlate(id, CarInfo[id][cLicense]);
LoadComponents(id);
}
}
mysql_free_result();
return 1;
}
here's it
Okay, fixed it, it was because I was using onqueryfinish(not sure why) but the cars won't spawn, why?
Re: mysql command out of sync -
[HiC]TheKiller - 12.01.2012
You don't free the result before storing another one. I also recommend loading the cars without using a loop.
pawn Код:
stock initiateCars()
{
new id;
mysql_query("SELECT * FROM `cars`");
mysql_store_result();
while(mysql_retrieve_row())
{
id++;
mysql_fetch_row_format(Query, "|")
sscanf(Query, "p<|>e<is[24]ffffffffiis[24]s[24]is[32]s[32]iiiiiiiiiiiiiiiiiiiii>", CarInfo[id]);
CreateVehicle(CarInfo[id][cModel], CarInfo[id][cLocationx], CarInfo[id][cLocationy], CarInfo[id][cLocationz]+1.0, CarInfo[id][cAngle], CarInfo[id][cColorOne], CarInfo[id][cColorTwo], 600000);
gCarLock[id] = 1;
SetVehicleNumberPlate(id, CarInfo[id][cLicense]);
LoadComponents(id);
}
mysql_free_result();
}
Re: mysql command out of sync -
fordawinzz - 12.01.2012
Thank you, the error won't appear now but the cars won't spawn...
the cars are loading as Debug says but are not spawning, why?
Re: mysql command out of sync -
[HiC]TheKiller - 12.01.2012
What do you do in your LoadComponents function? This may be causing the loop to break
.
Re: mysql command out of sync -
fordawinzz - 12.01.2012
pawn Код:
stock LoadComponents(vehicleid)
{
if(CarInfo[vehicleid][cMod1] >= 1000 && CarInfo[vehicleid][cMod1] <= 1193)
{
if(GetVehicleComponentInSlot(vehicleid,GetVehicleComponentType(CarInfo[vehicleid][cMod1])) != CarInfo[vehicleid][cMod1]) { AddVehicleComponent(vehicleid,CarInfo[vehicleid][cMod1]); }
}
if(CarInfo[vehicleid][cMod2] >= 1000 && CarInfo[vehicleid][cMod2] <= 1193)
{
if(GetVehicleComponentInSlot(vehicleid,GetVehicleComponentType(CarInfo[vehicleid][cMod2])) != CarInfo[vehicleid][cMod2]) { AddVehicleComponent(vehicleid,CarInfo[vehicleid][cMod2]); }
}
if(CarInfo[vehicleid][cMod3] >= 1000 && CarInfo[vehicleid][cMod3] <= 1193)
{
if(GetVehicleComponentInSlot(vehicleid,GetVehicleComponentType(CarInfo[vehicleid][cMod3])) != CarInfo[vehicleid][cMod3]) { AddVehicleComponent(vehicleid,CarInfo[vehicleid][cMod3]); }
}
//etc
Re: mysql command out of sync -
[HiC]TheKiller - 12.01.2012
Could you please post your mysql log file. If you are unsure on how to view your mysql log file, do the following:
1. Put mysql_log(1); under OnGameModeInit
2. Run the piece of code
3. Open the mysql log file in your server directory and paste the contents here.
Re: mysql command out of sync -
fordawinzz - 12.01.2012
Okay:
Код:
[14:07:30] CMySQLHandler::Query(SELECT * FROM `cars`) - Successfully executed.
[14:07:30] >> mysql_store_result( Connection handle: 1 )
[14:07:30] CMySQLHandler::StoreResult() - Result was stored.
[14:07:30] >> mysql_retrieve_row( Connection handle: 1 )
[14:07:30] >> mysql_fetch_row_format( Connection handle: 1 )
[14:07:30] CMySQLHandler::FetchRow() - Return: 2|429|2119.04|-1127.21|25.0107|266.051|2119.04|-1127.21|25.0107|266.051|-1|-1|Dealership|Banhsee|1850000|BANSHEE|BANSHEE|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0
[14:07:30] >> mysql_retrieve_row( Connection handle: 1 )
[14:07:30] >> mysql_fetch_row_format( Connection handle: 1 )
[14:07:30] CMySQLHandler::FetchRow() - Return: 4|541|2118.31|-1137.12|24.7255|267.167|2118.31|-1137.12|24.7255|267.167|-1|-1|Dealership|Bullet|1900000|BULLET2|BULLET2|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0
[14:07:30] >> mysql_retrieve_row( Connection handle: 1 )
[14:07:30] >> mysql_fetch_row_format( Connection handle: 1 )
[14:07:30] CMySQLHandler::FetchRow() - Return: 6|415|2117.98|-1146.88|24.3028|262.195|2118.1|-1146.88|24.3028|262.195|-1|-1|Dealership|Cheetah|1750000|CHEETAH2|CHEETAH2|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0
[14:07:30] >> mysql_retrieve_row( Connection handle: 1 )
[14:07:30] >> mysql_fetch_row_format( Connection handle: 1 )
[14:07:30] CMySQLHandler::FetchRow() - Return: 8|451|2136.16|-1132.11|25.3944|88.1268|2136.16|-1132.11|25.3944|88.1268|-1|-1|Dealership|Turismo|1950000|TURISMO2|TURISMO2|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0
[14:07:30] >> mysql_retrieve_row( Connection handle: 1 )
[14:07:30] >> mysql_fetch_row_format( Connection handle: 1 )
[14:07:30] CMySQLHandler::FetchRow() - Return: 10|506|2135.91|-1141.09|24.9327|88.8631|2135.91|-1141.09|24.9327|88.8631|-1|-1|Dealership|SuperGT|1100000|SUPERGT2|SUPERGT2|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0
[14:07:30] >> mysql_retrieve_row( Connection handle: 1 )
[14:07:30] >> mysql_fetch_row_format( Connection handle: 1 )
[14:07:30] CMySQLHandler::FetchRow() - Return: 12|411|2125.71|-1152.28|23.7633|322.745|2125.71|-1152.28|23.7633|322.745|-1|-1|Dealership|Infernus|1100000|INFERNUS2|INFERNUS2|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0
[14:07:30] >> mysql_retrieve_row( Connection handle: 1 )
[14:07:30] >> mysql_fetch_row_format( Connection handle: 1 )
[14:07:30] CMySQLHandler::FetchRow() - Return: 14|559|342.642|-1360.02|14.1641|117.885|342.642|-1360.02|14.1641|117.885|-1|-1|Dealership|Jester|1000000|JESTER2|JESTER2|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0
[14:07:30] >> mysql_retrieve_row( Connection handle: 1 )
[14:07:30] >> mysql_fetch_row_format( Connection handle: 1 )
[14:07:30] CMySQLHandler::FetchRow() - Return: 16|565|345.207|-1351.93|14.1311|298.517|345.207|-1351.93|14.1311|298.517|-1|-1|Dealership|Flash|1000000|FLASH|FLASH|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0
[14:07:30] >> mysql_retrieve_row( Connection handle: 1 )
[14:07:30] >> mysql_fetch_row_format( Connection handle: 1 )
[14:07:30] CMySQLHandler::FetchRow() - Return: 18|565|340.936|-1354.61|14.1324|118.825|340.936|-1354.61|14.1324|118.825|-1|-1|Dealership|Flash|1000000|FLASH3|FLASH3|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0
[14:07:30] >> mysql_retrieve_row( Connection handle: 1 )
[14:07:30] >> mysql_fetch_row_format( Connection handle: 1 )
[14:07:30] CMySQLHandler::FetchRow() - Return: 20|560|344.118|-1349.74|14.2039|299.888|344.118|-1349.74|14.2039|299.888|-1|-1|Dealership|Sultan|1000000|Dealership|Dealership|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0
[14:07:30] >> mysql_retrieve_row( Connection handle: 1 )
[14:07:30] >> mysql_fetch_row_format( Connection handle: 1 )
[14:07:30] CMySQLHandler::FetchRow() - Return: 22|562|342.737|-1347.39|14.166|294.349|342.737|-1347.39|14.166|294.349|-1|-1|Dealership|Elegy|1000000|Dealership|Dealership|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0
[14:07:30] >> mysql_retrieve_row( Connection handle: 1 )
[14:07:30] >> mysql_fetch_row_format( Connection handle: 1 )
[14:07:30] CMySQLHandler::FetchRow() - Return: 24|567|350.329|-1808.72|4.43577|359.97|350.329|-1808.72|4.43577|359.97|-1|-1|Dealership|Savanna|1000000|Dealership|Dealership|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0
[14:07:30] >> mysql_retrieve_row( Connection handle: 1 )
[14:07:30] >> mysql_fetch_row_format( Connection handle: 1 )
[14:07:30] CMySQLHandler::FetchRow() - Return: 26|567|317.708|-1790.28|4.57285|180.747|317.708|-1790.28|4.57285|180.747|-1|-1|Dealership|Savanna|1000000|Dealership|Dealership|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0
[14:07:30] >> mysql_retrieve_row( Connection handle: 1 )
[14:07:30] >> mysql_fetch_row_format( Connection handle: 1 )
[14:07:30] CMySQLHandler::FetchRow() - Return: 28|535|337.394|-1808.93|4.2768|359.894|337.394|-1808.93|4.2768|359.894|-1|-1|Dealership|Slamvan|1000000|Dealership|Dealership|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0
[14:07:30] >> mysql_retrieve_row( Connection handle: 1 )
[14:07:30] >> mysql_fetch_row_format( Connection handle: 1 )
[14:07:30] CMySQLHandler::FetchRow() - Return: 30|536|330.811|-1808.56|4.21311|0.217994|330.811|-1808.56|4.21311|0.217994|-1|-1|fordawin69|Blade|1000000|Dealership|Dealership|1|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0
[14:07:30] >> mysql_retrieve_row( Connection handle: 1 )
[14:07:30] >> mysql_fetch_row_format( Connection handle: 1 )
[14:07:30] CMySQLHandler::FetchRow() - Return: 32|536|331.109|-1789.64|4.58225|178.771|331.109|-1789.64|4.58225|178.771|-1|-1|Dealership|Blade|1000000|Dealership|Dealership|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0
[14:07:30] >> mysql_retrieve_row( Connection handle: 1 )
[14:07:30] >> mysql_fetch_row_format( Connection handle: 1 )
[14:07:30] CMySQLHandler::FetchRow() - Return: 34|534|311.499|-1808.77|4.19833|0.183495|311.499|-1808.77|4.19833|0.183495|-1|-1|Dealership|Remington|1000000|Dealership|Dealership|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0
[14:07:30] >> mysql_retrieve_row( Connection handle: 1 )
[14:07:30] >> mysql_fetch_row_format( Connection handle: 1 )
[14:07:30] CMySQLHandler::FetchRow() - Return: 36|402|1649.61|-1080|23.7289|89.5338|1649.61|-1080|23.7289|89.5338|-1|-1|Dealership|Buffalo|1000000|Dealership|Dealership|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0
[14:07:30] >> mysql_retrieve_row( Connection handle: 1 )
[14:07:30] >> mysql_fetch_row_format( Connection handle: 1 )
[14:07:30] CMySQLHandler::FetchRow() - Return: 38|402|1649.61|-1097.99|23.766|89.9962|1649.61|-1097.99|23.766|89.9962|-1|-1|Dealership|Buffalo|1000000|Test|Test|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0
[14:07:30] >> mysql_retrieve_row( Connection handle: 1 )
[14:07:30] >> mysql_fetch_row_format( Connection handle: 1 )
[14:07:30] CMySQLHandler::FetchRow() - Return: 40|555|1649.75|-1084.67|23.6086|91.675|1649.75|-1084.67|23.6086|91.675|-1|-1|Dealership|Windsor|1000000|Test|Test|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0
[14:07:30] >> mysql_retrieve_row( Connection handle: 1 )
[14:07:30] >> mysql_fetch_row_format( Connection handle: 1 )
[14:07:30] CMySQLHandler::FetchRow() - Return: 42|480|1649.2|-1106.99|23.6939|90.0006|1649.2|-1106.99|23.6939|90.0006|-1|-1|Dealership|Comet|1000000|Test|Test|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0
[14:07:30] >> mysql_retrieve_row( Connection handle: 1 )
[14:07:30] >> mysql_fetch_row_format( Connection handle: 1 )
[14:07:30] CMySQLHandler::FetchRow() - Return: 44|480|1649.4|-1111.5|23.6996|89.9633|1649.4|-1111.5|23.6996|89.9633|-1|-1|Dealership|Comet|1000000|Test|Test|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0
[14:07:30] >> mysql_retrieve_row( Connection handle: 1 )
[14:07:30] >> mysql_fetch_row_format( Connection handle: 1 )
[14:07:30] CMySQLHandler::FetchRow() - Return: 46|566|1657.84|-1093.47|23.6919|269.545|1657.84|-1093.47|23.6919|269.545|-1|-1|Dealership|Tahoma|1000000|Test|Test|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0
[14:07:30] >> mysql_retrieve_row( Connection handle: 1 )
[14:07:30] >> mysql_fetch_row_format( Connection handle: 1 )
[14:07:30] CMySQLHandler::FetchRow() - Return: 48|533|1658.07|-1107.18|23.6075|269.324|1658.07|-1107.18|23.6075|269.324|-1|-1|Dealership|Feltzer|1000000|Test|Test|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0
[14:07:30] >> mysql_retrieve_row( Connection handle: 1 )
[14:07:30] >> mysql_fetch_row_format( Connection handle: 1 )
[14:07:30] CMySQLHandler::FetchRow() - Return: 50|533|1658.16|-1089.11|23.6075|269.41|1658.16|-1089.11|23.6075|269.41|-1|-1|Dealership|Feltzer|1000000|Test|Test|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0
[14:07:31] >> mysql_retrieve_row( Connection handle: 1 )
[14:07:31] >> mysql_fetch_row_format( Connection handle: 1 )
[14:07:31] CMySQLHandler::FetchRow() - Return: 52|492|1680.83|-1044.21|23.7006|179.121|1680.83|-1044.21|23.7006|179.121|-1|-1|Dealership|Greenwood|1000000|Test|Test|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0
[14:07:31] >> mysql_retrieve_row( Connection handle: 1 )
[14:07:31] >> mysql_fetch_row_format( Connection handle: 1 )
[14:07:31] CMySQLHandler::FetchRow() - Return: 54|492|1698.68|-1044.25|23.7067|180.629|1698.68|-1044.25|23.7067|180.629|-1|-1|Dealership|Greenwood|1000000|Test|Test|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0
[14:07:31] >> mysql_retrieve_row( Connection handle: 1 )
[14:07:31] >> mysql_fetch_row_format( Connection handle: 1 )
[14:07:31] CMySQLHandler::FetchRow() - Return: 56|445|1694.29|-1044.24|23.8205|181.247|1694.29|-1044.24|23.8205|181.247|-1|-1|Dealership|Admiral|1000000|Test|Test|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0
[14:07:31] >> mysql_retrieve_row( Connection handle: 1 )
[14:07:31] >> mysql_fetch_row_format( Connection handle: 1 )
[14:07:31] CMySQLHandler::FetchRow() - Return: 58|516|1707.82|-1044.26|23.7245|180.9|1707.82|-1044.26|23.7245|180.9|-1|-1|Dealership|Nebula|1000000|Test|Test|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0
[14:07:31] >> mysql_retrieve_row( Connection handle: 1 )
[14:07:31] >> mysql_fetch_row_format( Connection handle: 1 )
[14:07:31] CMySQLHandler::FetchRow() - Return: 60|516|1703.49|-1035.36|23.7243|0.756146|1703.49|-1035.36|23.7243|0.756146|-1|-1|Dealership|Nebula|1000000|Test|Test|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0
[14:07:31] >> mysql_retrieve_row( Connection handle: 1 )
[14:07:31] >> mysql_fetch_row_format( Connection handle: 1 )
[14:07:31] CMySQLHandler::FetchRow() - Return: 62|546|1708.08|-1035.06|23.6287|357.621|1708.08|-1035.06|23.6287|357.621|-1|-1|Dealership|Intruder|1000000|Test|Test|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0
[14:07:31] >> mysql_retrieve_row( Connection handle: 1 )
[14:07:31] >> mysql_fetch_row_format( Connection handle: 1 )
[14:07:31] CMySQLHandler::FetchRow() - Return: 64|426|1694.36|-1035.54|23.6502|359.099|1694.36|-1035.54|23.6502|359.099|-1|-1|Dealership|Premier|1000000|Test|Test|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0
[14:07:31] >> mysql_retrieve_row( Connection handle: 1 )
[14:07:31] >> mysql_fetch_row_format( Connection handle: 1 )
[14:07:31] >> mysql_retrieve_row( Connection handle: 1 )
[14:07:31] >> mysql_free_result( Connection handle: 1 )
[14:07:31] CMySQLHandler::FreeResult() - Result was successfully free'd.
^ post edited
lol, those cars are loading of 2 in 2
loading cars problem -
fordawinzz - 12.01.2012
okay, I changed the script with THIS: the cars are loading nice but they won't spawn, wtf it's wrong?
pawn Код:
stock initiateCars()
{
new
id,
vModel,
vPos[8],
vColors[2],
vOwner[MAX_PLAYER_NAME],
vDesc[MAX_PLAYER_NAME],
vPrice,
vLicense[32],
vLicensedef[32],
vOwned,
vLocked,
vMod[17],
vPaintjob,
vLock,
totalcars
;
mysql_query("SELECT * FROM `cars` WHERE `id` < 66 ORDER BY id");
mysql_store_result();
if(mysql_num_rows() > 0)
{
while(mysql_fetch_row_format(Query, "|"))
{
sscanf(Query, "p<|>iffffffffiis[24]s[24]is[32]s[32]iiiiiiiiiiiiiiiiiiiii",
id, vModel, vPos[0], vPos[1], vPos[2], vPos[3], vPos[4], vPos[5], vPos[6], vPos[7], vColors[0], vColors[1], vOwner, vDesc, vPrice, vLicense, vLicensedef, vOwned, vLocked,
vMod[0], vMod[1], vMod[2], vMod[3], vMod[4], vMod[5], vMod[6], vMod[7], vMod[8], vMod[9], vMod[10], vMod[11], vMod[12], vMod[13], vMod[14], vMod[15], vMod[16],
vPaintjob, vLock);
CarInfo[id][cModel] = vModel;
CarInfo[id][cLocationx] = vPos[0]; CarInfo[id][cLocationy] = vPos[1]; CarInfo[id][cLocationz] = vPos[2]; CarInfo[id][cAngle] = vPos[3];
CarInfo[id][cLocationxdef] = vPos[4]; CarInfo[id][cLocationydef] = vPos[5]; CarInfo[id][cLocationzdef] = vPos[6]; CarInfo[id][cAngledef] = vPos[7];
CarInfo[id][cColorOne] = vColors[0]; CarInfo[id][cColorTwo] = vColors[1];
strmid(CarInfo[id][cOwner], vOwner, 0, MAX_PLAYER_NAME, MAX_PLAYER_NAME);
strmid(CarInfo[id][cDescription], vDesc, 0, MAX_PLAYER_NAME, MAX_PLAYER_NAME);
CarInfo[id][cValue] = vPrice;
strmid(CarInfo[id][cLicense], vLicense, 0, 32, 32);
strmid(CarInfo[id][cLicensedef], vLicensedef, 0, 32, 32);
CarInfo[id][cOwned] = vOwned;
CarInfo[id][cLocked] = vLocked;
CarInfo[id][cMod1] = vMod[0]; CarInfo[id][cMod2] = vMod[1]; CarInfo[id][cMod3] = vMod[2]; CarInfo[id][cMod4] = vMod[3];
CarInfo[id][cMod5] = vMod[4]; CarInfo[id][cMod6] = vMod[5]; CarInfo[id][cMod7] = vMod[6]; CarInfo[id][cMod8] = vMod[7];
CarInfo[id][cMod9] = vMod[8]; CarInfo[id][cMod10] = vMod[9]; CarInfo[id][cMod11] = vMod[10]; CarInfo[id][cMod12] = vMod[11];
CarInfo[id][cMod13] = vMod[12]; CarInfo[id][cMod14] = vMod[13]; CarInfo[id][cMod15] = vMod[14]; CarInfo[id][cMod16] = vMod[15]; CarInfo[id][cMod17] = vMod[16];
CarInfo[id][cPaintjob] = vPaintjob;
CarInfo[id][cLock] = vLock;
totalcars++;
CreateVehicle(CarInfo[id][cModel],CarInfo[id][cLocationx],CarInfo[id][cLocationy],CarInfo[id][cLocationz]+1.0,CarInfo[id][cAngle],CarInfo[id][cColorOne],CarInfo[id][cColorTwo], 600000);
//gCarLock[id] = 1;
//SetVehicleNumberPlate(id,CarInfo[id][cLicense]);
//LoadComponents(id);
//IsAnOwnable[id] = 1;
}
}
mysql_free_result();
printf("Total cars: %d", totalcars);
return 1;
}
oh, i'm sorry for bumping the topic, I didn't saw