02.10.2013, 04:39
Got that done, The cars save perfectly now. The loading is the issue... There's 2 rows in DB atm.
That shows there's 0 Vehicles loading. That's the most basic loading function I know for it to count, what's wrong there?
pawn Код:
public LoadCar()
{
new query[90], rows;
format(query, sizeof(query),"SELECT COUNT(*) FROM ownedcars");
mysql_query(query);
mysql_store_result();
rows = mysql_num_rows();
printf("[MYSQL-DATABASE]: Loaded %d Vehicles (Dynamic)", rows);
mysql_free_result();
return 1;
}