Hey.. ich bin schon lange am kniffeln..
aber ich komme einfach nicht weiter...
ich hoffe ihr könnt mir helfen... sonnst verzweifel ich noch..
mein Laden Code:
stock LoadFracCar()
{
new val[128],query[256];
for(new idx;idx<MAX_FRACTION_CARS; idx++)
{
format(query, sizeof(query), "SELECT * FROM `frakcar` WHERE `id` = %d", idx);
mysql_query(query);
mysql_store_result();
if(mysql_retrieve_row())
{
mysql_fetch_field_row(val,"Kennzeichen");
FCInfo[idx][Kennzeichen] = strval(val);
mysql_fetch_field_row(val,"Model");
FCInfo[idx][Model] = strval(val);
mysql_fetch_field_row(val,"PosX");
FCInfo[idx][fcX] = strval(val);
mysql_fetch_field_row(val,"PosY");
FCInfo[idx][fcY] = strval(val);
mysql_fetch_field_row(val,"PosZ");
FCInfo[idx][fcZ] = strval(val);
mysql_fetch_field_row(val,"PosA");
FCInfo[idx][fcA] = strval(val);
mysql_fetch_field_row(val,"Farbe 1");
FCInfo[idx][Color1] = strval(val);
mysql_fetch_field_row(val,"Farbe 2");
FCInfo[idx][Color2] = strval(val);
mysql_fetch_field_row(val,"Fraktion");
FCInfo[idx][Fraktion] = strval(val);
mysql_fetch_field_row(val,"Carid");
FCInfo[idx][Carid] = strval(val);
mysql_fetch_field_row(val,"Kosten");
FCInfo[idx][Kosten] = strval(val);
FCInfo[idx][Carid] = CreateVehicle(FCInfo[idx][Model],FCInfo[idx][fcX],FCInfo[idx][fcY],FCInfo[idx][fcZ],FCInfo[idx][fcA],FCInfo[idx][Color1],FCInfo[idx][Color2], -1);
SetVehicleNumberPlate(FCInfo[idx][Carid], FCInfo[idx][Kennzeichen]);
SetVehicleToRespawn(FCInfo[idx][Carid]);
print("Fraktionsfahrzeuge Geladen!");
}
mysql_free_result();
}
}