Input line too long (after substitutions), en mysql_query - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Español/Spanish (
https://sampforum.blast.hk/forumdisplay.php?fid=29)
+---- Thread: Input line too long (after substitutions), en mysql_query (
/showthread.php?tid=633420)
Input line too long (after substitutions), en mysql_query -
ByMatt20030 - 30.04.2017
Luego de un largo rato en SA-MP, estoy comenzando con lo que seria MySQL y lo relacionado, quize hacer una funciуn que cree las tablas de datos en una columna con mysql_query, pero estoy recibiendo este error:
Код:
MySQLGameMode.pwn(109) : error 075: input line too long (after substitutions)
MySQLGameMode.pwn(110) : error 037: invalid string (possibly non-terminated string)
MySQLGameMode.pwn(110) : error 017: undefined symbol "CREATE"
MySQLGameMode.pwn(110) : error 017: undefined symbol "TABLE"
MySQLGameMode.pwn(110) : fatal error 107: too many error messages on one line
Cуdigo:
Код:
mysql_query(handle, "CREATE TABLE IF NOT EXISTS `usuarios` (`id` int(11) NOT NULL AUTO_INCREMENT,\
`pNombre` text NOT NULL,\
`pContrasena` int(19) NOT NULL, \
`pSexo` int(1) NOT NULL DEFAULT '1',\
`pNacimiento` text NOT NULL, \
`pSkin` int(3) NOT NULL DEFAULT '0',\
`pPosX` float(1) NOT NULL DEFAULT '0',\
`pPosY` float NOT NULL DEFAULT '0',\
`pPosZ` float NOT NULL DEFAULT '0',\
`pMySQLID` int(11) NOT NULL DEFAULT '0',\
`pVirtualWorld` int(5) NOT NULL DEFAULT '0',\
`pInterior` int(5) NOT NULL DEFAULT '0',\
PRIMARY KEY (`id`)) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;", false);
Re: Input line too long (after substitutions), en mysql_query -
RIDE2DAY - 30.04.2017
Esto resolverб tu problema.
Re: Input line too long (after substitutions), en mysql_query -
ByMatt20030 - 30.04.2017
Juraba que ya lo estaba usando, pero dado lo visto, no estaba
Gracias