It does not save the cars. (Jarmu = Vehicle) -
Thomas Dallos - 10.11.2017
Hy.
What is the problem with this code?
Код:
public JarmuMentes(vid)
{
new Float: vX, Float: vY, Float: vZ;
GetVehiclePos(vid, vX, vY, vZ);
new Float: z_rot;
GetVehicleZAngle(vid, z_rot);
new idx = JarmuToID(vInfo[vid][Model]);
format(query, sizeof(query), "UPDATE `Jarmuvek` SET Model=%d, Modelnev='%s', Munka=%d, Szin1=%d, Szin2=%d, PosX=%f, PosY=%f, PosZ=%f, Angle=%f, Tulaj='%s', Kilometer=%f, Oldplayer='%s', vElet2=%f, Panels=%d, Doors=%d, Lights=%d, Tires=%d WHERE ID=%d",
vInfo[vid][Model], VehicleNames[idx-400], vInfo[vid][Munka], vInfo[vid][Szin1], vInfo[vid][Szin2], vX, vY, vZ, z_rot, vInfo[vid][Tulaj], vInfo[vid][vKilometer], vInfo[vid][Oldplayer], vInfo[vid][vElet2], vInfo[vid][Panels], vInfo[vid][Doors], vInfo[vid][Lights], vInfo[vid][Tires], vInfo[vid][vDBID]);
mysql_tquery(kapcs, query, "", "");
return 1;
}
It does not save the cars.
(Jarmu = Vehicle)
Command: Unknow command error
Re: It does not save the cars. (Jarmu = Vehicle) -
Meller - 10.11.2017
look up your mysql.log pls
Re: It does not save the cars. (Jarmu = Vehicle) -
Thomas Dallos - 10.11.2017
https://pastebin.com/DWNkwBma
Error and warning log is empty.
Re: It does not save the cars. (Jarmu = Vehicle) -
Lucases - 10.11.2017
Change
PHP код:
mysql_tquery(kapcs, query, "", "");
To:
PHP код:
mysql_query(kapcs, query);
If you aren't gonna use a callback with mysql_tquery use mysql_query
Re: It does not save the cars. (Jarmu = Vehicle) -
Thomas Dallos - 11.11.2017
Not working
Re: It does not save the cars. (Jarmu = Vehicle) -
CodeStyle175 - 11.11.2017
mysql_tquery(kapcs,query); is for that
and pls use english variables
Re: It does not save the cars. (Jarmu = Vehicle) -
thefirestate - 11.11.2017
I was wondering, even if your gamemode is meant to be for a different language why would you name your variables/code in the same language instead of just SendClientMessage/Dialogs and all that while having your core script and vars in English?