SA-MP Forums Archive
Best way to break this up?(Line too long) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Best way to break this up?(Line too long) (/showthread.php?tid=662689)



Best way to break this up?(Line too long) - Lynn - 08.01.2019

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.


Re: Best way to break this up?(Line too long) - KrYpToDeN - 08.01.2019

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.


Re: Best way to break this up?(Line too long) - Lynn - 08.01.2019

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