Best way to break this up?(Line too long)
#1

pawn Код:
mysql_tquery(Database, "CREATE TABLE IF NOT EXISTS `PLAYERS` (`ID` int(11) NOT NULL AUTO_INCREMENT,`USERNAME` varchar(24) NOT NULL,`PASSWORD` char(65) NOT NULL,`SALT` char(11) NOT NULL,`SCORE` mediumint(7), `KILLS` mediumint(7), `CASH` mediumint(7) NOT NULL DEFAULT '0',`DEATHS` mediumint(7) NOT NULL DEFAULT '0',`BANK` mediumint(7) NOT NULL DEFAULT '0',`ATTEMPTS` mediumint(7) NOT NULL DEFAULT '0',`COMPLETED` mediumint(7) NOT NULL DEFAULT '0',`ARRESTMADE` mediumint(7) NOT NULL DEFAULT '0',`ARRESTED` mediumint(7) NOT NULL DEFAULT '0', PRIMARY KEY (`ID`), UNIQUE KEY `USERNAME` (`USERNAME`))");
EDIT:
strcat Fixed the issue.
Reply
#2

1) Maybe - mysql_format(.....); / format(....);

2) 100% solution - https://github.com/pawn-lang/compiler
Also, look at - https://github.com/pawn-lang/compile...-compiler-bugs

I think it's the best Pawn eddited compiler at the moment.
Reply
#3

I used strcat and it solved my issue.
Seems to be the best method.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)