Guten abend,
Ich er erstellt die Tabelle Accounts perfekt aber nicht die Scheine ?
Wo liegt mein Fehler ?
Code:
CreateTables()
{
new query[1024],query1[1024];
// Spielerdaten
format(query, sizeof(query), "CREATE TABLE IF NOT EXISTS `script_accounts` (");
format(query, sizeof(query), "%s `ID` int(11) NOT NULL PRIMARY KEY,", query);
format(query, sizeof(query), "%s `Name` varchar(64),", query);
format(query, sizeof(query), "%s `Passwort` varchar(128) NOT NULL,", query);
format(query, sizeof(query), "%s `InternetProtocol` varchar(128) NOT NULL,", query);
format(query, sizeof(query), "%s `Eingeloggt` int(2) NOT NULL DEFAULT '0',", query);
format(query, sizeof(query), "%s `Admin` int(2) NOT NULL DEFAULT '0',", query);
format(query, sizeof(query), "%s `Tutorial` int(2) NOT NULL DEFAULT '0',", query);
format(query, sizeof(query), "%s `Level` int(2) NOT NULL DEFAULT '0',", query);
format(query, sizeof(query), "%s `Geld` int(2) NOT NULL DEFAULT '0',", query);
format(query, sizeof(query), "%s `Bank` int(2) NOT NULL DEFAULT '0',", query);
format(query, sizeof(query), "%s `Skin` int(2) NOT NULL DEFAULT '0'", query);
format(query, sizeof(query), "%s) ENGINE=InnoDB DEFAULT CHARSET=latin1;", query);
// Spieler Scheine
format(query1, sizeof(query1), "CREATE TABLE IF NOT EXISTS `script_scheine` (");
format(query1, sizeof(query1), "%s `ID` int(11) NOT NULL PRIMARY KEY,", query);
format(query1, sizeof(query1), "%s `Name` varchar(64),", query);
format(query1, sizeof(query1), "%s `Autoschein` int(2) NOT NULL DEFAULT '0',", query);
format(query1, sizeof(query1), "%s `Motorradschein` int(2) NOT NULL DEFAULT '0',", query);
format(query1, sizeof(query1), "%s `Flugschein` int(2) NOT NULL DEFAULT '0',", query);
format(query1, sizeof(query1), "%s `Waffenschein` int(2) NOT NULL DEFAULT '0',", query);
format(query1, sizeof(query1), "%s `Zollschein` int(2) NOT NULL DEFAULT '0'", query);
format(query1, sizeof(query1), "%s) ENGINE=InnoDB DEFAULT CHARSET=latin1;", query);
// Allgemeines
mysql_tquery(Handle, query);
mysql_tquery(Handle, query1);
return 1;
}