mysql_function_query
#8

Quote:
Originally Posted by TonyII
View Post
Thanks, that removed the error, but left me off with 2 warnings.
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, "
); // warning 217: loose indentation
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`))"
);
    mysql_function_query(g_Handle, qry1, false, "SendQuery", ""); // warning 217: loose indentation
EDIT: After compiling it the second time the warnings dissapeard, thanks again.
naturaly, code indentation only causes warnings (ppls tend to ignore them)
but it's important for you too that the code looks... proper..
i mean you spot mistakes faster cuz the code looks clear
Allman style is good for a clear view of your code (i use it myself)
Reply


Messages In This Thread
mysql_function_query - by TonyII - 03.01.2015, 10:47
AW: mysql_function_query - by CutX - 03.01.2015, 10:55
Re: mysql_function_query - by TonyII - 03.01.2015, 11:00
AW: Re: mysql_function_query - by CutX - 03.01.2015, 11:03
Re: AW: Re: mysql_function_query - by CrazyChoco - 03.01.2015, 11:07
AW: Re: AW: Re: mysql_function_query - by CutX - 03.01.2015, 11:17
Re: mysql_function_query - by TonyII - 03.01.2015, 11:24
AW: Re: mysql_function_query - by CutX - 03.01.2015, 11:29
Re: mysql_function_query - by TonyII - 03.01.2015, 11:32
Re: mysql_function_query - by CoaPsyFactor - 03.01.2015, 11:43

Forum Jump:


Users browsing this thread: 1 Guest(s)