SA-MP Forums Archive
Help Line too long error - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help Line too long error (/showthread.php?tid=253333)



Help Line too long error - Desertsoulz - 06.05.2011

pawn Код:
format(queryString, sizeof(queryString), "UPDATE vehicles SET vehicleModelID = '%d', vehiclePosX = '%f', vehiclePosY = '%f', vehiclePosZ = '%f', \
        vehiclePosRotation = '%f', vehicleGroup = '%d', vehicleCol1 = '%d', vehicleCol2 = '%d', vehicleMod0 = '%d', vehicleMod1 = '%d', vehicleMod2 = '%d', \
        vehicleMod3 = '%d', vehicleMod4 = '%d', vehicleMod5 = '%d', vehicleMod6 = '%d', vehicleMod7 = '%d', vehicleMod8 = '%d', vehicleMod9 = '%d', \ // line 4081
        vehicleMod10 = '%d', vehicleMod11 = '%d', vehicleMod12 = '%d', vehicleFuel = '%d', vehicleFuelEx = '%d', vehicleEngine = '%d', vehicleAlarm = '%d', \
        vehicleAlarmEx = '%d' vehicleLights = '%d', vehicleLightsEx = '%d', vehicleDoors = '%d', vehicleHood = '%d', vehicleTrunk = '%d', vehicleHealth = '%f', \
        vehicleSpeed = '%d' \
        WHERE vehicleID = '%d'"
,
        vehicleVariables[id][vVehicleModelID],
        vehicleVariables[id][vVehiclePosition][0],
        vehicleVariables[id][vVehiclePosition][1],
        vehicleVariables[id][vVehiclePosition][2],
        vehicleVariables[id][vVehicleRotation],
        vehicleVariables[id][vVehicleGroup],
        vehicleVariables[id][vVehicleColour][0],
        vehicleVariables[id][vVehicleColour][1],
        vehicleVariables[id][vMods][0],
        vehicleVariables[id][vMods][1],
        vehicleVariables[id][vMods][2],
        vehicleVariables[id][vMods][3],
        vehicleVariables[id][vMods][4],
        vehicleVariables[id][vMods][5],
        vehicleVariables[id][vMods][6],
        vehicleVariables[id][vMods][7],
        vehicleVariables[id][vMods][8],
        vehicleVariables[id][vMods][9],
        vehicleVariables[id][vMods][10],
        vehicleVariables[id][vMods][11],
        vehicleVariables[id][vMods][12],
        vehicleVariables[id][vFuel],
        vehicleVariables[id][vFuelEx],
        vehicleVariables[id][vEngine],
        vehicleVariables[id][vAlarm],
        vehicleVariables[id][vAlarmEx],
        vehicleVariables[id][vLights],
        vehicleVariables[id][vLightsEx],
        vehicleVariables[id][vDoors],
        vehicleVariables[id][vHood],
        vehicleVariables[id][vTrunk],
        vehicleVariables[id][vHealth],
        vehicleVariables[id][vSpeed],
        id);
        mysql_query(queryString);
^ The above is the code and line 4081 is marked, here's the error.

Код:
C:\Users\Desertsoulz_2\Desktop\Countryside Roleplay\gamemodes\vx-rp.pwn(4081) : error 075: input line too long (after substitutions)
Anyone know what to do with an error like this?


Re: Help Line too long error - Hal - 06.05.2011

break it up into two queries. And what is the size of querystring


Re: Help Line too long error - Desertsoulz - 06.05.2011

FIXED