15.05.2017, 13:02
Hi,
When i enter this code there no error:
but when i customize it and add score it gives me error:
Code:
Error:
When i enter this code there no error:
Код:
SetupPlayerTable() { mysql_tquery(g_SQL, "CREATE TABLE IF NOT EXISTS `players` (`id` int(11) NOT NULL AUTO_INCREMENT,`username` varchar(24) NOT NULL,`password` char(64) NOT NULL,`salt` char(16) NOT NULL,`kills` mediumint(8) NOT NULL DEFAULT '0',`deaths` mediumint(8) NOT NULL DEFAULT '0',`x` float NOT NULL DEFAULT '0',`y` float NOT NULL DEFAULT '0',`z` float NOT NULL DEFAULT '0',`angle` float NOT NULL DEFAULT '0',`interior` tinyint(3) NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `username` (`username`))"); return 1; }
Code:
Код:
SetupPlayerTable() { mysql_tquery(g_SQL, "CREATE TABLE IF NOT EXISTS `players` (`id` int(11) NOT NULL AUTO_INCREMENT,`username` varchar(24) NOT NULL,`password` char(64) NOT NULL,`salt` char(16) NOT NULL,`kills` mediumint(8) NOT NULL DEFAULT '0',`deaths` mediumint(8) NOT NULL DEFAULT '0',`x` float NOT NULL DEFAULT '0',`y` float NOT NULL DEFAULT '0',`z` float NOT NULL DEFAULT '0',`angle` float NOT NULL DEFAULT '0',`interior` tinyint(3) NOT NULL DEFAULT '0',`Score` mediumint(8) NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `username` (`username`))"); return 1; }
Код:
D:\GTA San Andreas\Server\gamemodes\mysql1.pwn(334) : error 075: input line too long (after substitutions) D:\GTA San Andreas\Server\gamemodes\mysql1.pwn(335) : error 037: invalid string (possibly non-terminated string) D:\GTA San Andreas\Server\gamemodes\mysql1.pwn(335) : error 017: undefined symbol "CREATE" D:\GTA San Andreas\Server\gamemodes\mysql1.pwn(335) : error 017: undefined symbol "TABLE" D:\GTA San Andreas\Server\gamemodes\mysql1.pwn(335) : fatal error 107: too many error messages on one line