Код:
new Query[255];
for(new id; id < MAX_AUTO; id++)
{
format(Query, sizeof(Query), "SELECT * FROM Jarmuvek WHERE SQLID = %d", id);
mysql_query(mysql,Query);
if(cache_num_rows())
new Auto = CreateVehicle(Jarmuvek[id][Modell],Jarmuvek[id][Posx],Jarmuvek[id][Posy],Jarmuvek[id][Posz],Jarmuvek[id][Posa],1,1, 60*10000);
//fuel[Auto] = Jarmuvek[id][Uzemanyag];
SetVehicleNumberPlate(Auto, Jarmuvek[id][Rendszam]);
SetVehicleToRespawn(Auto);
SetVehicleHealth(Auto, floatround(Jarmuvek[id][Damage]));
SetVehicleParamsEx(Auto, 0, 0, riaszto[id], ajtok[id], bonnet[id], boot[id], objective[id]);
Jarmu_Keszitve ++;
}
printf("> %d jбrmű betцltve az adatbбzisbуl.", Jarmu_Keszitve);
Don't load vehicles... pls help me, what's the problem?