Hier der Savestock:
stock SavePlayer(playerid)
{
if(IsPlayerConnected(playerid) && !IsPlayerNPC(playerid))
{
if(GetPVarInt(playerid,"Eingeloggt") == 1)
{
new Float:x;
new Float:y;
new Float:z;
GetPlayerPos(playerid,x,y,z);
PlayerInfo[playerid][pPosX] = x;
PlayerInfo[playerid][pPosY] = y;
PlayerInfo[playerid][pPosZ] = z;
mysql_SetInt("accounts", "MinutesAfterPayday", PlayerInfo[playerid][pMinutesAfterPayday], "Name", pName);
mysql_SetInt("accounts", "Respektpunkte", PlayerInfo[playerid][pRespektpunkte], "Name", pName);
mysql_SetInt("accounts", "TimeAfterRegister", PlayerInfo[playerid][pTimeAfterRegister], "Name", pName);
mysql_SetInt("accounts", "Level", GetPlayerScore(playerid), "Name", pName);
mysql_SetInt("accounts", "Adminlevel", PlayerInfo[playerid][pAdmin], "Name", pName);
mysql_SetInt("accounts", "Fraktion", PlayerInfo[playerid][pFraktion], "Name", pName);
mysql_SetInt("accounts", "Skin", PlayerInfo[playerid][pSkin], "Name", pName);
mysql_SetInt("accounts", "Job", PlayerInfo[playerid][pJob], "Name", pName);
mysql_SetInt("accounts", "Leader", PlayerInfo[playerid][pLeader], "Name", pName);
mysql_SetInt("accounts", "Member", PlayerInfo[playerid][pMember], "Name", pName);
mysql_SetInt("accounts", "Geschlecht", PlayerInfo[playerid][pGeschlecht], "Name", pName);
mysql_SetInt("accounts", "Alter", PlayerInfo[playerid][pAlter], "Name", pName);
mysql_SetInt("accounts", "Geld", PlayerInfo[playerid][pGeld], "Name", pName);
mysql_SetInt("accounts", "Gebannt", PlayerInfo[playerid][pBanned], "Name", pName);
mysql_SetInt("accounts", "Handybesitzer", PlayerInfo[playerid][pHandy], "Name", pName);
mysql_SetInt("accounts", "Handynummer", PlayerInfo[playerid][pHandyNr], "Name", pName);
mysql_SetInt("accounts", "Führerschein", PlayerInfo[playerid][pAutoFS], "Name", pName);
mysql_SetInt("accounts", "Waffenschein", PlayerInfo[playerid][pWaffenFS], "Name", pName);
mysql_SetInt("accounts", "Flugschein", PlayerInfo[playerid][pFlugFS], "Name", pName);
mysql_SetInt("accounts", "Segelschein", PlayerInfo[playerid][pBootFS], "Name", pName);
mysql_SetInt("accounts", "Bikeschein", PlayerInfo[playerid][pBikeFS], "Name", pName);
mysql_SetInt("accounts", "Truckschein", PlayerInfo[playerid][pLKWFS], "Name", pName);
mysql_SetFloat("accounts", "Position_X", PlayerInfo[playerid][pPosX], "Name", pName);
mysql_SetFloat("accounts", "Position_Y", PlayerInfo[playerid][pPosY], "Name", pName);
mysql_SetFloat("accounts", "Position_Z", PlayerInfo[playerid][pPosZ], "Name", pName);
mysql_SetInt("accounts", "InteriorID", GetPlayerInterior(playerid), "Name", pName);
}
}
return 1;
}
Beim Laden hat er ja keine Probleme lediglich beim speichern.