Bei meinem Register System werden die Daten nicht eingetragen, ich weiß aber nicht, warum...
case DIALOG_REGISTER:
{
if(response)
{
new name[MAX_PLAYER_NAME],query[128],passwort[35];
GetPlayerName(playerid,name,sizeof(name));
if(strlen(inputtext)>3)
{
mysql_escape_string(inputtext,passwort,dbhandle);
format(query,sizeof(query),"INSERT INTO user (username, passwort) VALUES ('%s','%s')", name, passwort);
mysql_function_query(dbhandle,query,false,"","");
gPlayerLogged[playerid] = 1;
SpawnPlayer(playerid);
}
else
{
SendClientMessage(playerid,COLOR_RED,"Dein Passwort muss mindestens 4 Zeichen lang sein.");
ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,"Registrierung","Gib
bitte dein gew?nschtes Passwort an:","Okay","Abbrechen");
}
}
else
{
kickplayer(playerid);
}
return 1;
}
//Push