Yeah works thanks, but now that i need these 2 extra fields "duelswin" "duelslost", so basically thats my code
PHP код:
SetupPlayerTable()
{
new query[1500];
strcat(query, " 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', \
`respect` mediumint(8) NOT NULL DEFAULT '0', \
`score` mediumint(8) NOT NULL DEFAULT '0',\
`duelsw` mediumint(8) NOT NULL DEFAULT '0',\
`duelsl` mediumint(8) NOT NULL DEFAULT '0',\
`points` mediumint(8) NOT NULL DEFAULT '0', \
`admin` mediumint(8) NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY (`username`))");
mysql_tquery(g_SQL, query);
return 1;
}
Код:
C:\Users\Wallen\Desktop\LS DM\gamemodes\DBv1.pwn(3097) : error 075: input line too long (after substitutions)
C:\Users\Wallen\Desktop\LS DM\gamemodes\DBv1.pwn(3098) : error 037: invalid string (possibly non-terminated string)
C:\Users\Wallen\Desktop\LS DM\gamemodes\DBv1.pwn(3098) : error 017: undefined symbol "CREATE"
C:\Users\Wallen\Desktop\LS DM\gamemodes\DBv1.pwn(3098) : error 017: undefined symbol "TABLE"
C:\Users\Wallen\Desktop\LS DM\gamemodes\DBv1.pwn(3098) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
5 Errors.
But if i remove these 2 extra fields it's all ok, but since i need em both there, i guess i can't?