SA-MP Forums Archive
error 075: input line too long (after substitutions) - 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)
+--- Thread: error 075: input line too long (after substitutions) (/showthread.php?tid=662318)



error 075: input line too long (after substitutions) - ZigGamerx - 29.12.2018

Код:
new newstring[1800];
							strcat(newstring, "Civilian - Silenced Pistol,Shotgun - 0 XP\nBoxer - Deagle,Shotgun,More Fist Damage - 300 XP\nPolice - Deagle,Shotgun - 500 XP\nGangster - Deagle,Spray Cane - 700 XP\nScout - Silenced Pistol,Sniper - 1000 X\n\
							Medic - Silenced Pistol,Shotgun Can cure humans - 1500 XP\nHeavy Medic - Deagle,Shotgun,Armour - Can cure humans - 2500\nAdvanced Gangster - Spray, Deagle, AK47 - 9,500 XP\nFire Guy - M4,Deagle,Can spawn random weapons using LALT - 70,000 XP\nAdvanced Hero - Deagle,M4,Half Armour - 300,000 XP");
Код:
G:\sampdm\gamemodes\zma.pwn(950) : error 075: input line too long (after substitutions)
G:\sampdm\gamemodes\zma.pwn(951) : error 037: invalid string (possibly non-terminated string)
G:\sampdm\gamemodes\zma.pwn(951) : error 017: undefined symbol "Civilian"
G:\sampdm\gamemodes\zma.pwn(951) : error 017: undefined symbol "Pistol"
G:\sampdm\gamemodes\zma.pwn(951) : fatal error 107: too many error messages on one line
error lines
Код:
strcat(newstring, "Civilian - Silenced Pistol,Shotgun - 0 XP\nBoxer - Deagle,Shotgun,More Fist Damage - 300 XP\nPolice - Deagle,Shotgun - 500 XP\nGangster - Deagle,Spray Cane - 700 XP\nScout - Silenced Pistol,Sniper - 1000 X\n\
Код:
Medic - Silenced Pistol,Shotgun Can cure humans - 1500 XP\nHeavy Medic - Deagle,Shotgun,Armour - Can cure humans - 2500\nAdvanced Gangster - Spray, Deagle, AK47 - 9,500 XP\nFire Guy - M4,Deagle,Can spawn random weapons using LALT - 70,000 XP\nAdvanced Hero - Deagle,M4,Half Armour - 300,000 XP");



Re: error 075: input line too long (after substitutions) - aKnoxx - 29.12.2018

Try this maybe:

PHP код:
    new newstring[1800];
        
strcat(newstring"Civilian - Silenced Pistol,Shotgun - 0 XP\nBoxer - Deagle,Shotgun,More Fist Damage - 300 XP\n");
        
strcat(newstring"Police - Deagle,Shotgun - 500 XP\nGangster - Deagle,Spray Cane - 700 XP\n");
        
strcat(newstring"Scout - Silenced Pistol,Sniper - 1000 X\nMedic - Silenced Pistol,Shotgun Can cure humans - 1500 XP\n");
        
strcat(newstring"Heavy Medic - Deagle,Shotgun,Armour - Can cure humans - 2500\nAdvanced Gangster - Spray,Deagle, AK47 - 9,500 XP\n");
        
strcat(newstring"Fire Guy - M4,Deagle,Can spawn random weapons using LALT - 70,000 XP\nAdvanced Hero - Deagle,M4,Half Armour - 300,000 XP"); 



Re: error 075: input line too long (after substitutions) - ZigGamerx - 29.12.2018

I want fix of my code only

EDIT: I fixed it myself, Anyways Thanks.