SA-MP Forums Archive
mysql problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: mysql problem (/showthread.php?tid=616011)



mysql problem - kexy96 - 30.08.2016

Код:
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?


Re: mysql problem - Shinja - 30.08.2016

Show the table