29.05.2012, 01:56
So i made a new callback to save the vehicle lock variable. Here it is:
I printf the query after locking the vehicle. So the same thing. If it was zero , its still zero. If it was one its still one. It changes in game buy why doesnt it save? Damn
pawn Код:
public SaveVehicleLock(vehicleid)
{
if(VehicleExistsArray(vehicleid))
{
new array_id = VEHICLE_ARRAY_ID[vehicleid];
//printf("SV ARRAY_ID %d", array_id);
format(query, sizeof(query), "UPDATE `Vehicle` SET `locked` = '%d' WHERE `id` = '%d'",
Vehicle[array_id][vLocked],
Vehicle[array_id][vSQLID]);
db_free_result(db_query(database,query));
printf(query);
}
return true;
}