Wieso speichert es nicht ab..
stock LoadPlayer(playerid)
{
if(IsPlayerConnected(playerid) && !IsPlayerNPC(playerid))
{
GetPlayerName(playerid, PlayerInfo[playerid][pName], MAX_PLAYER_NAME);
GivePlayerMoney(playerid,mysql_GetInt("accountsdm", "Geld", "Name", PlayerInfo[playerid][pName]));
SetPlayerScore(playerid, mysql_GetInt("accountsdm", "Level", "Name", PlayerInfo[playerid][pName]));
PlayerInfo[playerid][pKills] = mysql_GetInt("accountsdm","Morde","Name",PlayerInfo[playerid][pName]);
PlayerInfo[playerid][pDeaths] = mysql_GetInt("accountsdm","Tode","Name",PlayerInfo[playerid][pName]);
}
return 1;
}
stock SavePlayer(playerid)
{
if(IsPlayerConnected(playerid) && !IsPlayerNPC(playerid))
{
if(GetPVarInt(playerid,"Eingeloggt") == 1)
{
GetPlayerName(playerid, PlayerInfo[playerid][pName], MAX_PLAYER_NAME);
mysql_SetInt("accountsdm", "Geld", GetPlayerMoney(playerid), "Name", PlayerInfo[playerid][pName]);
mysql_SetInt("accountsdm", "Level", GetPlayerScore(playerid), "Name", PlayerInfo[playerid][pName]);
mysql_SetInt("accountsdm", "Morde", PlayerInfo[playerid][pKills], "Name", PlayerInfo[playerid][pName]);
mysql_SetInt("accountsdm", "Tode", PlayerInfo[playerid][pDeaths], "Name", PlayerInfo[playerid][pName]);
}
}
return 1;
}
{
if(IsPlayerConnected(playerid) && !IsPlayerNPC(playerid))
{
GetPlayerName(playerid, PlayerInfo[playerid][pName], MAX_PLAYER_NAME);
GivePlayerMoney(playerid,mysql_GetInt("accountsdm", "Geld", "Name", PlayerInfo[playerid][pName]));
SetPlayerScore(playerid, mysql_GetInt("accountsdm", "Level", "Name", PlayerInfo[playerid][pName]));
PlayerInfo[playerid][pKills] = mysql_GetInt("accountsdm","Morde","Name",PlayerInfo[playerid][pName]);
PlayerInfo[playerid][pDeaths] = mysql_GetInt("accountsdm","Tode","Name",PlayerInfo[playerid][pName]);
}
return 1;
}
stock SavePlayer(playerid)
{
if(IsPlayerConnected(playerid) && !IsPlayerNPC(playerid))
{
if(GetPVarInt(playerid,"Eingeloggt") == 1)
{
GetPlayerName(playerid, PlayerInfo[playerid][pName], MAX_PLAYER_NAME);
mysql_SetInt("accountsdm", "Geld", GetPlayerMoney(playerid), "Name", PlayerInfo[playerid][pName]);
mysql_SetInt("accountsdm", "Level", GetPlayerScore(playerid), "Name", PlayerInfo[playerid][pName]);
mysql_SetInt("accountsdm", "Morde", PlayerInfo[playerid][pKills], "Name", PlayerInfo[playerid][pName]);
mysql_SetInt("accountsdm", "Tode", PlayerInfo[playerid][pDeaths], "Name", PlayerInfo[playerid][pName]);
}
}
return 1;
}