Hallo
Will MySQL jetzt endlich mal lernen. Klappt soweit, aber wenn ich nen PlayerAccount erstellen will bekomm ich per mysql_debug folgenden Error:
SQL
[20:18:34] CMySQLHandler::Query(INSERT INTO player (Key, Name) VALUE ('Passwort', 'EvilToastBrot')) - An error has occured. (Error ID: 1064, You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Key, Name) VALUE ('Passwort', 'EvilToastBrot')' at line 1)
Die Funktion dazu:
stock CreatePlayerAcc(name[], pw[])
{
new str[128];
format(str, sizeof str, "INSERT INTO player (Key, Name) VALUE ('%s', '%s')", pw, name);
new quu = mysql_query(str);
if(!quu) print("creating an account has failed!");
return 1;
}
Ich seh da keinen SQL Error helft mir bitte
LG
Evil
//Edit: Hatte was falsches kopiert.