SQLite VehLock Saving
#6

So i made a new callback to save the vehicle lock variable. Here it is:
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;
}
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
Reply


Messages In This Thread
SQLite VehLock Saving - by Ballu Miaa - 28.05.2012, 04:10
Re: SQLite VehLock Saving - by [HiC]TheKiller - 28.05.2012, 04:48
Re: SQLite VehLock Saving - by Ballu Miaa - 28.05.2012, 05:45
Re: SQLite VehLock Saving - by ReneG - 28.05.2012, 05:51
Re: SQLite VehLock Saving - by Ballu Miaa - 28.05.2012, 06:06
Re: SQLite VehLock Saving - by Ballu Miaa - 29.05.2012, 01:56
Re: SQLite VehLock Saving - by Jonny5 - 29.05.2012, 02:02
Re: SQLite VehLock Saving - by Ballu Miaa - 29.05.2012, 02:06
Re: SQLite VehLock Saving - by ReneG - 29.05.2012, 02:29
Re: SQLite VehLock Saving - by Ballu Miaa - 29.05.2012, 02:45

Forum Jump:


Users browsing this thread: 1 Guest(s)