14.06.2013, 20:39
I get no error or warning yet the car isn't being made.
pawn Код:
case Thread_LoadVehicles:
{
mysql_store_result();
new result[124];
while(mysql_retrieve_row()) {
mysql_get_field("DataID", result);
Vehicle[extraid][DataID] = strval(result);
mysql_get_field("vModel", result);
Vehicle[extraid][vModel] = strval(result);
mysql_get_field("vPosX", result);
Vehicle[extraid][vPos][0] = floatstr(result);
mysql_get_field("vPosY", result);
Vehicle[extraid][vPos][1] = floatstr(result);
mysql_get_field("vPosZ", result);
Vehicle[extraid][vPos][2] = floatstr(result);
mysql_get_field("vPosR", result);
Vehicle[extraid][vPos][3] = floatstr(result);
mysql_get_field("vColour1", result);
Vehicle[extraid][vColour][0] = strval(result);
mysql_get_field("vColour2", result);
Vehicle[extraid][vColour][1] = strval(result);
mysql_get_field("vFuel", result);
Vehicle[extraid][vFuel] = strval(result);
Vehicle[extraid][vVehicleID] = CreateVehicle(Vehicle[extraid][vModel], Vehicle[extraid][vPos][0], Vehicle[extraid][vPos][1], Vehicle[extraid][vPos][2], Vehicle[extraid][vPos][3], Vehicle[extraid][vColour][0], Vehicle[extraid][vColour][1], 60000);
Fuel[extraid] = Vehicle[extraid][vFuel];
System[VehicleCount]++;
}
printf("[System] %d Vehicle(s) loaded.", System[VehicleCount]);
mysql_free_result();
}