Problemwith mysql![error 075: input line too long ]
#7

Errors:
pawn Код:
(300) : error 037: invalid string (possibly non-terminated string)
(300) : error 017: undefined symbol "mysql_function_query"
(300) : error 017: undefined symbol "TABLE"
(300) : fatal error 107: too many error messages on one line
Lines
pawn Код:
stock mySQL_init()
{
    mysql_debug(1);
    new Query [512];
    g_Handle = mysql_connect(SQL_HOST, SQL_USER, SQL_DB, SQL_PASS);
    /* Table Structure - kind of messy, I know. */
    strcat(Query, "mysql_function_query(g_Handle, CREATE TABLE IF NOT EXISTS `Accounts` ( \
    `id` int(11) NOT NULL AUTO_INCREMENT, \
    `name` varchar(24) NOT NULL, \
    `pass` varchar(129) NOT NULL, \
    `salt` varchar(30) 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, \");
    strcat(Query, "
`skin` int(3) NOT NULL, \
    `Respect` int(3) NOT NULL, \
    `EXP` int(3) NOT NULL, \
    `Level` int(3) NOT NULL, \
    `Admin` int(3) NOT NULL, \
    `VIP` int(3) NOT NULL, \
    `Mapper` int(3) NOT NULL, \
    `Helper` int(3) NOT NULL, \
    PRIMARY KEY (`id`) \
    )", false, "SendQuery", "");
    return 1;
}
It would be double work.. That's why I want to make it automatically.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)