Okay danke, kannte die Funktion nicht..
Versuch es mal so..
CreateAccount
stock CreateAccount(playerid, pass[])
{
new query[256],pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
mysql_real_escape_string(pname,pname);
mysql_real_escape_string(pass,pass);
format(query, sizeof(query), "INSERT INTO `accounts` (`Name`, `Passwort`) VALUES ('%s', '%s')", Name, pname);
SpielerInfo[playerid][pLevel]=NoobLevel;
SpielerInfo[playerid][hID]=-1;
SpielerInfo[playerid][pSkin]=78;
strins(SpielerInfo[playerid][pRankname],"Unknown",0);
SpielerInfo[playerid][ActivateSoundeffects]=1;
GivePlayerMoney(playerid,NoobMoney);
SetPlayerScore(playerid,NoobLevel);
mysql_query(query);
return true;
}
{
new query[256],pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
mysql_real_escape_string(pname,pname);
mysql_real_escape_string(pass,pass);
format(query, sizeof(query), "INSERT INTO `accounts` (`Name`, `Passwort`) VALUES ('%s', '%s')", Name, pname);
SpielerInfo[playerid][pLevel]=NoobLevel;
SpielerInfo[playerid][hID]=-1;
SpielerInfo[playerid][pSkin]=78;
strins(SpielerInfo[playerid][pRankname],"Unknown",0);
SpielerInfo[playerid][ActivateSoundeffects]=1;
GivePlayerMoney(playerid,NoobMoney);
SetPlayerScore(playerid,NoobLevel);
mysql_query(query);
return true;
}