Ja hallo Leute,
ich habe gerade meinen Server gestartet und musste feststellen, dass mein MySQL nur den Namen und das Passwort in seiner Tabelle speichert, weiß
jemand wieso? Hier der Save Stock:
stock SavePlayer(playerid)
{
if(IsPlayerConnected(playerid) && !IsPlayerNPC(playerid)) //wir überprüfen ob der Spieler überhaupt noch Connected ist und ob er nicht ein NPC ist.
{
if(GetPVarInt(playerid,"Eingeloggt") == 1) //Und hier ob er noch eingeloggt ist.
{
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;
//Nun speichern wir die Daten in der Datenbank.
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;
}