It does not save the cars. (Jarmu = Vehicle)
#1

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
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)