SA-MP Forums Archive
[ERROR] Input line too long - 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] Input line too long (/showthread.php?tid=290525)



[ERROR] Input line too long - Ricop522 - 16.10.2011

E:\Meus Documentos\MySQL\MySQL 0.3D\gamemodes\MySQL.pwn(231) : error: 075: input line too long (after substitutions)
E:\Meus Documentos\MySQL\MySQL 0.3D\gamemodes\MySQL.pwn(231) : error: 037: invalid string (possibly non-terminated string)
E:\Meus Documentos\MySQL\MySQL 0.3D\gamemodes\MySQL.pwn(231) : error: 017: undefined symbol "CREATE"
E:\Meus Documentos\MySQL\MySQL 0.3D\gamemodes\MySQL.pwn(231) : error: 017: undefined symbol "TABLE"
E:\Meus Documentos\MySQL\MySQL 0.3D\gamemodes\MySQL.pwn(231) : error fatal: 107: too many error messages on one line


pawn Код:
mysql_query("CREATE TABLE IF NOT EXISTS playerinfo(user VARCHAR(24) , password VARCHAR(40) , matou INT(20) , morreu INT(20) , dinheiro INT(20) , admin INT(20) , posx INT(20) , posy INT(20) , posz INT(20) , interior INT(20) , skin INT(20) , banco INT(20) , level INT(20), tutorial INT(20), respeito INT(20), time INT(20),cargo INT(20) , emprego INT(20), logado INT(20), sexo INT(20), idade INT(20)) posx INT(20) , posy INT(20) , posz INT(20) , interior INT(20) , skin INT(20) , banco INT(20) , level INT(20) , tutorial INT(20) , respeito INT(20) , time INT(20) ,cargo INT(20) , emprego INT(20) , logado INT(20) , sexo INT(20) , idade INT(20) )  ENGINE = MyISAM");
What I do ? '-'


Re: [ERROR] Input line too long - Joe Staff - 16.10.2011

You have to break it up because PAWNO doesn't seem to like long strings

pawn Код:
new string[512];
strcat(string,"text here, text here, text here, text here, text here, text here, text here, text here, ");
strcat(string,"text here, text here, text here, text here, text here, text here, text here, text here, ");
strcat(string,"text here, text here, text here, text here, text here, text here, text here, text here, ");
mysql_query(string);



Re: [ERROR] Input line too long - TheLazySloth - 16.10.2011

Код:
new
Query[512];
format(Query, 512, "CREATE TABLE IF NOT EXISTS playerinfo(user VARCHAR(24) , password VARCHAR(40) , matou INT(20)");
format(Query, 512, "%s , morreu INT(20) , dinheiro INT(20) , admin INT(20) , posx INT(20) , posy INT(20) , posz INT(20) ,", Query);
format(Query, 512, "%s interior INT(20) , skin INT(20) , banco INT(20) , level INT(20), tutorial INT(20), respeito INT(20), time INT(20),", Query);
format(Query, 512, "%s cargo INT(20) , emprego INT(20), logado INT(20), sexo INT(20), idade INT(20)) posx INT(20) , posy INT(20) , posz INT(20) , interior INT(20)", Query);
format(Query, 512, "%s , skin INT(20) , banco INT(20) , level INT(20) , tutorial INT(20) , respeito INT(20) , time INT(20) ,cargo INT(20) , emprego INT(20)", Query);
format(Query, 512, "%s , logado INT(20) , sexo INT(20) , idade INT(20) )  ENGINE = MyISAM", Query);
mysql_query(string);
Like Joe_Staff said, but I did it for you cause I'm bored.


Re: [ERROR] Input line too long - Ricop522 - 16.10.2011

Thank you