SaveCar(vehicleid) not working.
#7

Your query has size of 5024 which is causing run time error 3.

PHP код:
new Float:Pos[4], nenidoorsFloat:vhppanelsdoors1lightstires,ts[14];
static 
Query[450] = "UPDATE cars SET x=%f,y=%f,z=%f,a=%f,vw=%d,inter=%d,far1=%d,far2=%d," \
"km=%f,fuel=%d,battery=%d,vlock=%d,vhp=%f,panels=%d,doors=%d,lights=%d,tires=%d,ts0=%d,ts1=%d, ts2=%d,ts3=%d,ts4=%d,ts5=%d,ts6=%d,ts7=%d,ts8=%d,ts9=%d,ts10=%d,ts11=%d,ts12=%d,ts13=%d,paintjob=%d,tanked=%d,tovar=%d,tovartyp=%d,radio=%d WHERE spz='%s'";
format(Querysizeof QueryQuery,
Pos[0],Pos[1],Pos[2],Pos[3],GetVehicleVirtualWorld(vehicleid), 0vehicle[vehicleid][FARBA1],vehicle[vehicleid][FARBA2],
vehicle[vehicleid][KILOMETER],vehicle[vehicleid][FUEL],vehicle[vehicleid][BATTERY],doors,vhp,panels,doors1,lights,tires,ts[0],ts[1],ts[2],ts[3],ts[4],ts[5],ts[6],ts[7],ts[8],ts[9],ts[10],ts[11],ts[12],ts[13],vehicle[vehicleid][PAINTJOB], vehicle[vehicleid][TANKED], vehicle[vehicleid][TOVAR],vehicle[vehicleid][TOVARTYPE],vehicle[vehicleid][RADIO],vehicle[vehicleid][SPZ]); 
---

About run time error 4, you will need to create a file called pawn.cfg in pawno folder and write -d3 in it. Save it and re-compile the script. Start the server, join and if you get the logs again, post them here.

---

Something last: You don't need to free any result in queries that are not with SELECT. The version of the mysql plugin you are using is also outdated - consider updating eventually.
Reply


Messages In This Thread
SaveCar(vehicleid) not working. - by Bigwebicek - 10.08.2016, 18:10
Re: SaveCar(vehicleid) not working. - by Bigwebicek - 11.08.2016, 05:43
Re: SaveCar(vehicleid) not working. - by JaKe Elite - 11.08.2016, 06:15
Re: SaveCar(vehicleid) not working. - by Bigwebicek - 11.08.2016, 07:02
Re: SaveCar(vehicleid) not working. - by jlalt - 11.08.2016, 08:24
Re: SaveCar(vehicleid) not working. - by Bigwebicek - 11.08.2016, 10:09
Re: SaveCar(vehicleid) not working. - by Konstantinos - 11.08.2016, 10:23
Re: SaveCar(vehicleid) not working. - by Bigwebicek - 11.08.2016, 10:47

Forum Jump:


Users browsing this thread: 1 Guest(s)