04.06.2013, 18:34
Quote:
This is what I had when I used Dini files, is there a way to do the same with Mysql?
pawn Код:
|
pawn Код:
stock GetFreeVehicleSlot()
{
new query[200];
for(new v = 0; v < MAX_VEHICLES; v ++)
{
format(query, sizeof(query), "SELECT * FROM `Vehicles` WHERE CarFileID = %d");
mysql_function_query(g_connectionHandle, query, false, "DefaultCallback", "");
mysql_store_result(g_connectionHandle);
if(mysql_num_rows(g_connectionHandle) > 0) continue;
return v;
}
return -1;
}