Load Vehicles + MYSQL
#3

Quote:
Originally Posted by Vince
Посмотреть сообщение
I'd say use a while loop, but I just noticed there is caching. Either way;

pawn Код:
mysql_function_query(g_connectionHandle, "SELECT * FROM Vehicles", true, "LoadVehiclesCallback", "d", id);
pawn Код:
new
    rows,
    fields;

cache_get_data(rows, fields, g_connectionHandle);

for(new i; i < rows; i++)
{
    new carFileId = cache_get_row_int(i, 0, g_connectionHandle);
    // Load stuff
}
This still does not stop this right?
Well, My vehicle system works all fine but my CarFileID is Auto_Increasement.
When I delete a vehicle it just keeps counting up, for example, I have vehicle 1 2 3 4 5 6, and I delete 4 it will continue with 7 8 9 10...
Reply


Messages In This Thread
Load Vehicles + MYSQL - by Stefand - 04.06.2013, 14:13
Re: Load Vehicles + MYSQL - by Vince - 04.06.2013, 14:24
Re: Load Vehicles + MYSQL - by Stefand - 04.06.2013, 14:44

Forum Jump:


Users browsing this thread: 1 Guest(s)