open.mp forum
[Pawn] error 075: input line too long (after substitutions) - Printable Version

+ open.mp forum (https://forum.open.mp)
-- Forum: SA-MP (https://forum.open.mp/forumdisplay.php?fid=3)
--- Forum: Pawn Scripting (https://forum.open.mp/forumdisplay.php?fid=10)
--- Thread: [Pawn] error 075: input line too long (after substitutions) (/showthread.php?tid=660)



error 075: input line too long (after substitutions) - PiLLoW - 2019-06-18

I need help im new to scripting anyone can help me





Quote:C:\Users\Desktop\prp-master\gamemodes\newScript.pwn(27445) : error 075: input line too long (after substitutions)



Code:
mysql_format(m_Handle, query, sizeof(query), "INSERT INTO weapon_attachments(playerdbid, weaponid, boneid, PosX, PosY, PosZ, RotX, RotY, RotZ, Hidden) VALUES(%i, %i, %i, %f, %f, %f, %f, %f, %f, %i) ON DUPLICATE KEY UPDATE boneid = %i, PosX = %f, PosY = %f, PosZ = %f, RotX = %f, RotY = %f, RotZ = %f, Hidden = %i",





Quote:C:\Users\Desktop\prp-master\gamemodes\newScript.pwn(27542) : error 075: input line too long (after substitutions)



Code:
PlayerData[playerid][pSQLID], id, WeaponDisplay[playerid][id][weaponBone], -0.055998, 0.188999, 0.053998, 0.000000, 44.500007, 0.000000, WeaponDisplay[playerid][id][weaponHidden], WeaponDisplay[playerid][id][weaponBone], WeaponDisplay[playerid][id][weaponPos][0], WeaponDisplay[playerid][id][weaponPos][1], WeaponDisplay[playerid][id][weaponPos][2], WeaponDisplay[playerid][id][weaponRot][0], WeaponDisplay[playerid][id][weaponRot][1], WeaponDisplay[playerid][id][weaponRot][2], WeaponDisplay[playerid][id][weaponHidden]);



RE: error 075: input line too long (after substitutions) - Y_Less - 2019-06-19

Just add some new lines after commas (not in the string). Like:



PHP Code:
mysql_format(m_Handlequerysizeof(query),

    
"INSERT INTO weapon_attachments(playerdbid, weaponid, boneid, PosX, PosY, PosZ, RotX, RotY, RotZ, Hidden) VALUES(%i, %i, %i, %f, %f, %f, %f, %f, %f, %i) ON DUPLICATE KEY UPDATE boneid = %i, PosX = %f, PosY = %f, PosZ = %f, RotX = %f, RotY = %f, RotZ = %f, Hidden = %i",

    
PlayerData[playerid][pSQLID], idWeaponDisplay[playerid][id][weaponBone], -0.0559980.1889990.0539980.00000044.5000070.000000WeaponDisplay[playerid][id][weaponHidden],

    
WeaponDisplay[playerid][id][weaponBone], WeaponDisplay[playerid][id][weaponPos][0], WeaponDisplay[playerid][id][weaponPos][1], WeaponDisplay[playerid][id][weaponPos][2],

    
WeaponDisplay[playerid][id][weaponRot][0], WeaponDisplay[playerid][id][weaponRot][1], WeaponDisplay[playerid][id][weaponRot][2], WeaponDisplay[playerid][id][weaponHidden]

); 



Though I think this line would be fine on the new compiler.


RE: error 075: input line too long (after substitutions) - PiLLoW - 2019-06-19

ill try it sir thanks a lot