stock JarmuBetoltes(vehicleid){new q[512], oszlop[128];format(q, sizeof(q), \"SELECT * FROM %s WHERE id = %i\", TABLE_JARMUVEK, vehicleid);mysql_query(q);mysql_store_result();if(mysql_num_rows() == 1){ while(mysql_fetch_row_format(q, \"|\")) { mysql_fetch_field_row(oszlop, \"id\"); vInfo[vehicleid][vID] = strval(oszlop); mysql_fetch_field_row(oszlop, \"model\"); vInfo[vehicleid][vModel] = strval(oszlop); mysql_fetch_field_row(oszlop, \"x\"); vInfo[vehicleid][vX] = floatstr(oszlop); mysql_fetch_field_row(oszlop, \"y\"); vInfo[vehicleid][vY] = floatstr(oszlop); mysql_fetch_field_row(oszlop, \"z\"); vInfo[vehicleid][vZ] = floatstr(oszlop); mysql_fetch_field_row(oszlop, \"angle\"); vInfo[vehicleid][vAngle] = floatstr(oszlop); mysql_fetch_field_row(oszlop, \"allapot\"); vInfo[vehicleid][vAllapot] = floatstr(oszlop); mysql_fetch_field_row(oszlop, \"szin1\"); vInfo[vehicleid][vCOLOR1] = strval(oszlop); mysql_fetch_field_row(oszlop, \"szin2\"); vInfo[vehicleid][vCOLOR2] = strval(oszlop); mysql_fetch_field_row(oszlop, \"rendszam\"); format(vInfo[vehicleid][vRendszam], 6+1, \"%s\", oszlop); mysql_fetch_field_row(oszlop, \"eladva\"); vInfo[vehicleid][vEladva] = strval(oszlop); mysql_fetch_field_row(oszlop, \"uzemanyag\"); vInfo[vehicleid][vUzemanyag] = strval(oszlop); mysql_fetch_field_row(oszlop, \"uzemanyagvan\"); vInfo[vehicleid][vUzemanyagVan] = strval(oszlop); mysql_fetch_field_row(oszlop, \"lampa\"); vInfo[vehicleid][vLampa] = strval(oszlop); mysql_fetch_field_row(oszlop, \"ajto\"); vInfo[vehicleid][vAjto] = strval(oszlop); mysql_fetch_field_row(oszlop, \"gumi\"); vInfo[vehicleid][vLukasGumi] = strval(oszlop); mysql_fetch_field_row(oszlop, \"beinditva\"); vInfo[vehicleid][bEINDITVA] = strval(oszlop); mysql_fetch_field_row(oszlop, \"ara\"); vInfo[vehicleid][vAra] = strval(oszlop); mysql_fetch_field_row(oszlop, \"letezik\"); vInfo[vehicleid][vLetezik] = strval(oszlop); mysql_fetch_field_row(oszlop, \"uzemanyagkell\"); vInfo[vehicleid][vMaxUzemanyag] = strval(oszlop); mysql_fetch_field_row(oszlop, \"uzemanyagmax\"); vInfo[vehicleid][vUzemanyagTipus] = strval(oszlop); vehicleid = CreateVehicle(vInfo[vehicleid][vModel], vInfo[vehicleid][vX], vInfo[vehicleid][vY], vInfo[vehicleid][vZ], vInfo[vehicleid][vAngle], vInfo[vehicleid][vCOLOR1], vInfo[vehicleid][vCOLOR2], 0); SetVehicleNumberPlate(vehicleid, vInfo[vehicleid][vRendszam]); SetVehicleToRespawn(vehicleid); SetVehicleHealth(vehicleid, vInfo[vehicleid][vAllapot]); if(vInfo[vehicleid][bEINDITVA] == 1) { VehicleEngineOn(vehicleid); } if(vInfo[vehicleid][vLampa] == 1) { VehicleLightsOn(vehicleid); } new panels, doors, lights, tires; GetVehicleDamageStatus(vehicleid, panels, doors, lights, tires); UpdateVehicleDamageStatus(vehicleid, panels, doors, lights, vInfo[vehicleid][vLukasGumi]); printf(\"< [MySQL]: Jármû ID: %i. | Sikeresen betöltve! >\", vehicleid); mysql_free_result();}}}