03.01.2015, 10:47
Hey guys, so whenever I got my code like this.
I get: error 075: input line too long (after substitutions)
Whenever I use strcat like this
I get: error 017: undefined symbol "mysql_function_query"
Please note that it works and compiles fine when I do it like this.
Left out 5 of the lines.
pawn Code:
mysql_function_query(g_Handle, "CREATE TABLE IF NOT EXISTS `users` ( \
`id` int(11) NOT NULL AUTO_INCREMENT, \
`name` varchar(24) NOT NULL, \
`pass` varchar(129) NOT NULL, \
`health` float NOT NULL, \
`X` float NOT NULL, \
`Y` float NOT NULL, \
`Z` float NOT NULL, \
`A` float NOT NULL, \
`interior` int(2) NOT NULL, \
`vw` int(11) NOT NULL, \
`skin` int(3) NOT NULL, \
`banned` int(3) NOT NULL, \
`primary` int(3) NOT NULL, \
`primaryammo` int(5) NOT NULL, \
`secondary` int(3) NOT NULL, \
`secondaryammo` int(5) NOT NULL, \
PRIMARY KEY (`id`) \
)", false, "SendQuery", "");
Whenever I use strcat like this
pawn Code:
strcat(qry1,"CREATE TABLE IF NOT EXISTS `users` ( \
`id` int(11) NOT NULL AUTO_INCREMENT, \
`name` varchar(24) NOT NULL, \
`pass` varchar(129) NOT NULL, \
`health` float NOT NULL, \
`X` float NOT NULL, \
`Y` float NOT NULL, \
`Z` float NOT NULL, \
`A` float NOT NULL, ");
strcat(qry1,"`interior` int(2) NOT NULL, \
`vw` int(11) NOT NULL, \
`skin` int(3) NOT NULL, \
`banned` int(3) NOT NULL, \
`primary` int(3) NOT NULL, \
`primaryammo` int(5) NOT NULL, \
`secondary` int(3) NOT NULL, \
`secondaryammo` int(5) NOT NULL, PRIMARY KEY (`id`))", false, "SendQuery", "");
mysql_function_query(g_Handle, qry1);
Please note that it works and compiles fine when I do it like this.
pawn Code:
mysql_function_query(g_Handle, "CREATE TABLE IF NOT EXISTS `users` ( \
`id` int(11) NOT NULL AUTO_INCREMENT, \
`name` varchar(24) NOT NULL, \
`pass` varchar(129) NOT NULL, \
`health` float NOT NULL, \
`X` float NOT NULL, \
`Y` float NOT NULL, \
`Z` float NOT NULL, \
`A` float NOT NULL, \
`interior` int(2) NOT NULL, \
`vw` int(11) NOT NULL, \
`skin` int(3) NOT NULL, \
PRIMARY KEY (`id`) \
)", false, "SendQuery", "");