Und wie kann ich dich speichern??
ihr mein Stock SavePlayer
stock SavePlayer(playerid)
{
if(IsPlayerConnected(playerid) && !IsPlayerNPC(playerid))
{
if(GetPVarInt(playerid,"Eingeloggt") == 1)
{
GetPlayerName(playerid, PlayerInfo[playerid][pName], MAX_PLAYER_NAME);
mysql_SetInt("accounts", "Geld", GetPlayerMoney(playerid), "Name", PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "Skin", GetPlayerSkin(playerid), "Name", PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "WantedLevel",GetPlayerWantedLevel(playerid),"Name",PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "Level", GetPlayerScore(playerid), "Name", PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "FightingStyle",GetPlayerFightingStyle(playerid), "Name", PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "Kontostand",PlayerInfo[playerid][pKontoStand], "Name", PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "Alter", PlayerInfo[playerid][pAlter],"Name",PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "Werbungsanzahl", PlayerInfo[playerid][pWerbung],"Name",PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "Telefonbuch", PlayerInfo[playerid][pTelefonbuch], "Name",PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "HandyNummer", PlayerInfo[playerid][pHandyNummer],"Name",PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "GangJail",PlayerInfo[playerid][pGangJail],"Name",PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "Nutzung",PlayerInfo[playerid][pNutzung],"Name",PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "Job",PlayerInfo[playerid][pJob],"Name",PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "SaveMats",PlayerInfo[playerid][pSaveMats],"Name",PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "Kills", PlayerInfo[playerid][pKills], "Name", PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "MatsPakete",PlayerInfo[playerid][pPackete],"Name",PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "MatsHave",PlayerInfo[playerid][pMats],"Name",PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "FraktionsLeader", PlayerInfo[playerid][pFraktionsLeader], "Name", PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "FraktionsMember", PlayerInfo[playerid][pFraktionsMember], "Name", PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "FraktionsRange", PlayerInfo[playerid][pFraktionsRange], "Name", PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "AdminLevel", PlayerInfo[playerid][pAdminLevel], "Name", PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "Autoschein", PlayerInfo[playerid][pAutoschein], "Name", PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "Motorradschein", PlayerInfo[playerid][pMotorradschein], "Name", PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "Flugzeugschein", PlayerInfo[playerid][pFlugschein], "Name", PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "LKWschein", PlayerInfo[playerid][pLKWschein], "Name", PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "Bootschein", PlayerInfo[playerid][pBootschein], "Name", PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "Waffenschein", PlayerInfo[playerid][pWaffenschein], "Name", PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "Angelschein", PlayerInfo[playerid][pAngelschein], "Name", PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "Respektpunkte", PlayerInfo[playerid][pRespektPunkte], "Name", PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "PayDayTime", PlayerInfo[playerid][pPayDayTime], "Name", PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "Bann",PlayerInfo[playerid][pBanned],"Name",PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "TimeBan",PlayerInfo[playerid][pTimeBanned],"Name",PlayerInfo[playerid][pName]);
new str[128];
format(str,sizeof(str),"Spieler %s erfolgreich gespeichert!",PlayerName(playerid));
print(str);
}
}
return 1;
}
{
if(IsPlayerConnected(playerid) && !IsPlayerNPC(playerid))
{
if(GetPVarInt(playerid,"Eingeloggt") == 1)
{
GetPlayerName(playerid, PlayerInfo[playerid][pName], MAX_PLAYER_NAME);
mysql_SetInt("accounts", "Geld", GetPlayerMoney(playerid), "Name", PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "Skin", GetPlayerSkin(playerid), "Name", PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "WantedLevel",GetPlayerWantedLevel(playerid),"Name",PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "Level", GetPlayerScore(playerid), "Name", PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "FightingStyle",GetPlayerFightingStyle(playerid), "Name", PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "Kontostand",PlayerInfo[playerid][pKontoStand], "Name", PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "Alter", PlayerInfo[playerid][pAlter],"Name",PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "Werbungsanzahl", PlayerInfo[playerid][pWerbung],"Name",PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "Telefonbuch", PlayerInfo[playerid][pTelefonbuch], "Name",PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "HandyNummer", PlayerInfo[playerid][pHandyNummer],"Name",PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "GangJail",PlayerInfo[playerid][pGangJail],"Name",PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "Nutzung",PlayerInfo[playerid][pNutzung],"Name",PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "Job",PlayerInfo[playerid][pJob],"Name",PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "SaveMats",PlayerInfo[playerid][pSaveMats],"Name",PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "Kills", PlayerInfo[playerid][pKills], "Name", PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "MatsPakete",PlayerInfo[playerid][pPackete],"Name",PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "MatsHave",PlayerInfo[playerid][pMats],"Name",PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "FraktionsLeader", PlayerInfo[playerid][pFraktionsLeader], "Name", PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "FraktionsMember", PlayerInfo[playerid][pFraktionsMember], "Name", PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "FraktionsRange", PlayerInfo[playerid][pFraktionsRange], "Name", PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "AdminLevel", PlayerInfo[playerid][pAdminLevel], "Name", PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "Autoschein", PlayerInfo[playerid][pAutoschein], "Name", PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "Motorradschein", PlayerInfo[playerid][pMotorradschein], "Name", PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "Flugzeugschein", PlayerInfo[playerid][pFlugschein], "Name", PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "LKWschein", PlayerInfo[playerid][pLKWschein], "Name", PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "Bootschein", PlayerInfo[playerid][pBootschein], "Name", PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "Waffenschein", PlayerInfo[playerid][pWaffenschein], "Name", PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "Angelschein", PlayerInfo[playerid][pAngelschein], "Name", PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "Respektpunkte", PlayerInfo[playerid][pRespektPunkte], "Name", PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "PayDayTime", PlayerInfo[playerid][pPayDayTime], "Name", PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "Bann",PlayerInfo[playerid][pBanned],"Name",PlayerInfo[playerid][pName]);
mysql_SetInt("accounts", "TimeBan",PlayerInfo[playerid][pTimeBanned],"Name",PlayerInfo[playerid][pName]);
new str[128];
format(str,sizeof(str),"Spieler %s erfolgreich gespeichert!",PlayerName(playerid));
print(str);
}
}
return 1;
}