21.01.2012, 17:36
pawn Код:
public LoadCar()
{
mysql_query("SELECT * FROM `vehicles`");
mysql_store_result();
if(mysql_num_rows())
{
new
result[512],
i = 0;
while(mysql_fetch_row_format(result, "|"))
{
sscanf(result,"p<|>iffffiis[32]s[32]iiii");
printf("CarInfo: %d Owner:%s", i, CarInfo[i][cOwner]);
i++;
mysql_next_row();
}
mysql_free_result();
}
else print("The table is empty!");
return 1;
}