03.01.2015, 10:55
you get the undefined symbol error because you used strcat incorrectly.
strcat has three params.
1st being the destination
2nd the source
3rd the max. length (which is the size of the destination by default so we don't have to set it)
see:
after "PRIMARY KEY (`id`))" you offered 3 unknown params to strcat.
false, "sendQuery" and ""
strcat has three params.
1st being the destination
2nd the source
3rd the max. length (which is the size of the destination by default so we don't have to set it)
see:
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);
false, "sendQuery" and ""