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
#2

look up your mysql.log pls
Reply
#3

https://pastebin.com/DWNkwBma

Error and warning log is empty.
Reply
#4

Change
PHP код:
mysql_tquery(kapcsquery""""); 
To:

PHP код:
mysql_query(kapcsquery); 
If you aren't gonna use a callback with mysql_tquery use mysql_query
Reply
#5

Not working
Reply
#6

mysql_tquery(kapcs,query); is for that
and pls use english variables
Reply
#7

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?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)