Guten abend Com,
Und zwar habe ich ein Problem mein Script erstellt keine Tabellen für das Script.
Ich bin seit 1 Stunde dieses Problem zu beheben aber nichts klappt.
Code:
stock CreateTables()
{
new MySqlConnection;
mysql_function_query(MySqlConnection,"CREATE TABLE `accounts` IF NOT EXISTS (`ID` int(11) NOT NULL AUTO_INCREMENT,`Name` varchar(24) NOT NULL,`Password` varchar(130) NOT NULL,`Score` int NOT NULL, `Money` int NOT NULL, PRIMARY KEY (`ID`)) AUTO_INCREMENT=7;",false,"","");
}
MySQL Log:
SQL
[01:21:30]
[01:21:30] ** MySQL Debugging enabled (03/23/14)
[01:21:30]
[01:21:30] >> mysql_connect(127.0.0.1, root, SelfmadeSAMP, ******) on port 3306
[01:21:30] CMySQLHandler::CMySQLHandler() - constructor called.
[01:21:30] CMySQLHandler::CMySQLHandler() - Connecting to "127.0.0.1" | DB: "SelfmadeSAMP" | Username: "root"
[01:21:30] CMySQLHandler::Connect() - Connection was successful.
[01:21:30] CMySQLHandler::Connect() - Auto-Reconnect has been enabled.
[01:21:30] >> mysql_ping( Connection handle: 1 )
[01:21:30] CMySQLHandler::Ping() - Connection is still alive.
[01:21:30] >> mysql_query_callback( Connection handle: 0 )
[01:21:30] >> mysql_query_callback() - Invalid connection handle. (You set: 0, Highest connection handle ID is 1).
Alles anzeigen
Ich hoffe mir kann jemand schnell weiter helfen.
Mfg
Maadison