Hey Com,
Es laden wenn ich diesesn Stock nutze iwie keine Autos da steht 0:
stock LoadCarPrice()
{
mysql_query("SELECT * FROM `Autohausfahrzeuge`");
mysql_store_result();
if(!mysql_num_rows())//
{
mysql_query("INSERT INTO `Autohausfahrzeuge` (`CarID`,`Price`) VALUES ('587','0')");
mysql_query("INSERT INTO `Autohausfahrzeuge` (`CarID`,`Price`) VALUES ('559','0')");
mysql_query("INSERT INTO `Autohausfahrzeuge` (`CarID`,`Price`) VALUES ('541','0')");
mysql_query("INSERT INTO `Autohausfahrzeuge` (`CarID`,`Price`) VALUES ('506','0')");
mysql_query("INSERT INTO `Autohausfahrzeuge` (`CarID`,`Price`) VALUES ('477','0')");
mysql_query("INSERT INTO `Autohausfahrzeuge` (`CarID`,`Price`) VALUES ('411','0')");
mysql_query("INSERT INTO `Autohausfahrzeuge` (`CarID`,`Price`) VALUES ('402','0')");
mysql_query("INSERT INTO `Autohausfahrzeuge` (`CarID`,`Price`) VALUES ('405','0')");
mysql_query("INSERT INTO `Autohausfahrzeuge` (`CarID`,`Price`) VALUES ('558','0')");
mysql_query("INSERT INTO `Autohausfahrzeuge` (`CarID`,`Price`) VALUES ('559','0')");
mysql_query("INSERT INTO `Autohausfahrzeuge` (`CarID`,`Price`) VALUES ('541','0')");
mysql_query("INSERT INTO `Autohausfahrzeuge` (`CarID`,`Price`) VALUES ('506','0')");
mysql_query("INSERT INTO `Autohausfahrzeuge` (`CarID`,`Price`) VALUES ('477','0')");
mysql_query("INSERT INTO `Autohausfahrzeuge` (`CarID`,`Price`) VALUES ('411','0')");
mysql_query("INSERT INTO `Autohausfahrzeuge` (`CarID`,`Price`) VALUES ('402','0')");
mysql_query("INSERT INTO `Autohausfahrzeuge` (`CarID`,`Price`) VALUES ('405','0')");
mysql_query("INSERT INTO `Autohausfahrzeuge` (`CarID`,`Price`) VALUES ('587','0')");
mysql_query("INSERT INTO `Autohausfahrzeuge` (`CarID`,`Price`) VALUES ('560','0')");
mysql_query("INSERT INTO `Autohausfahrzeuge` (`CarID`,`Price`) VALUES ('562','0')");
mysql_query("INSERT INTO `Autohausfahrzeuge` (`CarID`,`Price`) VALUES ('565','0')");
mysql_query("INSERT INTO `Autohausfahrzeuge` (`CarID`,`Price`) VALUES ('496','0')");
mysql_query("INSERT INTO `Autohausfahrzeuge` (`CarID`,`Price`) VALUES ('576','0')");
mysql_query("INSERT INTO `Autohausfahrzeuge` (`CarID`,`Price`) VALUES ('466','0')");
mysql_query("INSERT INTO `Autohausfahrzeuge` (`CarID`,`Price`) VALUES ('507','0')");
mysql_query("INSERT INTO `Autohausfahrzeuge` (`CarID`,`Price`) VALUES ('589','0')");
mysql_query("INSERT INTO `Autohausfahrzeuge` (`CarID`,`Price`) VALUES ('579','0')");
mysql_query("INSERT INTO `Autohausfahrzeuge` (`CarID`,`Price`) VALUES ('400','0')");
mysql_query("INSERT INTO `Autohausfahrzeuge` (`CarID`,`Price`) VALUES ('500','0')");
mysql_query("INSERT INTO `Autohausfahrzeuge` (`CarID`,`Price`) VALUES ('429','0')");
mysql_query("INSERT INTO `Autohausfahrzeuge` (`CarID`,`Price`) VALUES ('480','0')");
mysql_query("INSERT INTO `Autohausfahrzeuge` (`CarID`,`Price`) VALUES ('533','0')");
mysql_query("INSERT INTO `Autohausfahrzeuge` (`CarID`,`Price`) VALUES ('439','0')");
mysql_query("INSERT INTO `Autohausfahrzeuge` (`CarID`,`Price`) VALUES ('567','0')");
mysql_query("INSERT INTO `Autohausfahrzeuge` (`CarID`,`Price`) VALUES ('536','0')");
mysql_query("INSERT INTO `Autohausfahrzeuge` (`CarID`,`Price`) VALUES ('534','0')");
mysql_query("INSERT INTO `Autohausfahrzeuge` (`CarID`,`Price`) VALUES ('535','0')");
mysql_query("INSERT INTO `Autohausfahrzeuge` (`CarID`,`Price`) VALUES ('603','0')");
LoadCarPrice();
return 1;
}
else
{
new data[350], field[2][64], car_counter;
while(mysql_fetch_row(data))
{
splitfu(data, field, '|');
CarBuy[car_counter][vID] = strval(field[0]);
CarBuy[car_counter][Price] = strval(field[1]);
car_counter++;
}
}
mysql_free_result();
return 1;
}
Was ist das?