06.05.2013, 05:14
pawn Код:
DynamicCars[vehicle][CarModel] = model;
format(query, sizeof(query), "UPDATE Vehicles SET CarModel=%d WHERE carid=%d",
model, vehicle);
mysql_query(query);
format(query, sizeof(query), "SELECT * FROM Vehicles WHERE carid=%d", vehicle);
mysql_query(query);
mysql_store_result();
mysql_fetch_row(row);
split(row, arrCoords, '|');
DestroyVehicle(playerid);
new Carid = CreateVehicle(strval(arrCoords[1]), floatstr(arrCoords[2]), floatstr(arrCoords[3]), floatstr(arrCoords[4]), floatstr(arrCoords[5]), strval(arrCoords[6]), strval(arrCoords[7]), 60000);
DynamicCars[Carid][FactionCar] = strval(arrCoords[8]);
DynamicCars[Carid][CarType] = strval(arrCoords[9]);
strmid(DynamicCars[Carid][cDescription], arrCoords[10], 0, strlen(arrCoords[10]), 255);