Hallo ich versuch datenbank zu erstellen bzw die Tabelle aber.. Die Errors hindern mich!
stock CreateTable()
{
new query[128],query1[128];
format(query,sizeof(query),"CREATE TABLE IF NOT EXISTS `character` (`characterID` int(11) NOT NULL AUTO_INCREMENT,`characterName` varchar(24) NOT NULL,`money` int(11) NOT NULL,`admin` int(11) NOT NULL,`level` int(11) NOT NULL,`ban` int(11) NOT NULL,PRIMARY KEY (`characterID`)) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;");
mysql_query(query);
format(query1,sizeof(query1),"CREATE TABLE IF NOT EXISTS `character_to_user` (`characterID` int(11) NOT NULL,`userID` int(11) NOT NULL,`enabled` int(11) NOT NULL DEFAULT '-1')"); ENGINE=InnoDB DEFAULT CHARSET=latin1;");
mysql_query(query1);
}C:\Users\Admin\Desktop\Truck.pwn(273) : error 017: undefined symbol "ENGINE"
C:\Users\Admin\Desktop\Truck.pwn(273) : error 017: undefined symbol "InnoDB"
C:\Users\Admin\Desktop\Truck.pwn(273) : error 017: undefined symbol "DEFAULT"
C:\Users\Admin\Desktop\Truck.pwn(273) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.