Code not working.
#1

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);
After everything is saved,(which works), it should still proceed to the bottom part, which it doesn't for some reason, why?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)