mysql problem
#1

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


Messages In This Thread
mysql problem - by kexy96 - 30.08.2016, 11:14
Re: mysql problem - by Shinja - 30.08.2016, 12:39

Forum Jump:


Users browsing this thread: 1 Guest(s)