11.08.2016, 10:23
Your query has size of 5024 which is causing run time error 3.
---
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.
PHP код:
new Float:Pos[4], neni, doors, Float:vhp, panels, doors1, lights, tires,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(Query, sizeof Query, Query,
Pos[0],Pos[1],Pos[2],Pos[3],GetVehicleVirtualWorld(vehicleid), 0, vehicle[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.