Hello SA-MP Forum members, I got 5 errors in my script, That's because this.
The Errors:
How can i fix it?
Code:
stock loadb()
{
Database = db_open(_DB_);
db_query(Database,"CREATE TABLE IF NOT EXISTS `users`\
(`userid` INTEGER PRIMARY KEY AUTOINCREMENT, `username` TEXT, `IP` TEXT, `joindate` TEXT, `password` TEXT, `admin` NUMERIC, `kills` NUMERIC, `deaths` NUMERIC, `score` NUMERIC, `fbscore` NUMERIC, `ddscore` NUMERIC, `frscore` NUMERIC, `rscore` NUMERIC, `dmscore` NUMERIC, `money` NUMERIC, `warn` NUMERIC, `mute` NUMERIC, `mutesec` NUMERIC, `cmute` NUMERIC, `cmutesec` NUMERIC, `jail` NUMERIC, `jailsec` NUMERIC, `hours` NUMERIC, `minutes` NUMERIC, `seconds` NUMERIC, `question` TEXT, `answer` TEXT, `vip` NUMERIC)");
db_query(Database,
"CREATE TABLE IF NOT EXISTS `bans` (`username` TEXT, `ip` TEXT, `banby` TEXT, `banreason` TEXT, `banwhen` TEXT)");
return 1;
}
Code:
fatal error 107: too many error messages on one line
error 017: undefined symbol "TABLE"
error 017: undefined symbol "CREATE"
error 037: invalid string (possibly non-terminated string)
error 075: input line too long (after substitutions)