Hallo
ich habe keine ahnung wieso er nur yyyy aus den Passswort macht obwohl das z.b. steht 123mama123
So lade ich das passwort stock LoadPasswort(playerid)
{
new query[130],Get[130];
GetPlayerName(playerid, pDaten[playerid][pNames], MAX_PLAYER_NAME);
pDaten[playerid][Passwort] = mysql_GetInt("accounts", "Passwort", "Name", pDaten[playerid][pNames]);
mysql_query(query);
mysql_store_result();
mysql_fetch_row(Get);
mysql_free_result();
}
und so speicher ich es:
Im Befehl:CreateAccount(ziel, pDaten[ziel][Passwort]);
Im StocK
stock CreateAccount(playerid, pass[])
{
new query[256],Name3[MAX_PLAYER_NAME];
GetPlayerName(playerid, Name3, MAX_PLAYER_NAME);
mysql_real_escape_string(Name3,Name3);
mysql_real_escape_string(pass,pass);
format(query, sizeof(query), "INSERT INTO accounts (Name, Passwort) VALUES ('%s', '%s')", Name3, pass);
mysql_query(query);
return true;
}