06.04.2014, 12:53
You don't need strcat for that:
But why do you set most of the values manually?
pawn Код:
format(querystr, sizeof(querystr), "UPDATE vehicleinfo SET Owner = 'none', Plate = 'plate', xc = %f, yc = %f, zc = %f, ac = %f, Color1 = 1, Color2 = 1, Locked = 0, Exploded = 0, Paintjob = 255,",
VehicleSystem[vehicleid][xc], VehicleSystem[vehicleid][yc], VehicleSystem[vehicleid][zc], VehicleSystem[vehicleid]][ac]);
format(querystr, sizeof(querystr), "%smod1 = 0, mod2 = 0, mod3 = 0, mod4 = 0, mod5 = 0, mod6 = 0, mod7 = 0, mod8 = 0, mod9 = 0, mod10 = 0, mod11 = 0, mod12 = 0, mod13 = 0, mod14 = 0, mod15 = 0, mod16 = 0, mod17 = 0 WHERE ID = %d",
querystr, vehicleid);