30.09.2013, 23:37
Quote:
Either try the first line, before the format on one line, then the format on the bottom, or strcat.
|
![Smiley](images/smilies/smile.png)
pawn Код:
public LoadCar()
{
new row[4000], carid;
for(new idx = 1; idx < sizeof(CarInfo) ; idx++)
{
mysql_query("SELECT * FROM ownedcars");
mysql_store_result();
while(mysql_retrieve_row())
{
mysql_fetch_row(row);
carid ++;
sscanf(row, "p<|>e<ddffffiis[60]ddds[60]dddddddddddddddd>", CarInfo[carid]);
}
mysql_free_result();
}
printf("[MYSQL-DATABASE]: Loaded %d Owned Vehicles.", carid);
return 1;
}
Any idea why that doesn't load them with the sscanf?