Hey leute hab ein Problem mit dem Laden von Daten aus der Datenbank.
Laut mysql log werden sie abgerufen aber gespeichert werden sie nicht in meinem pInfo array.
stock LoadPlayer(playerid)
{
if(IsPlayerConnected(playerid) && !IsPlayerNPC(playerid))
{
PlayerInfo[playerid][AdminLevel] = mysql_GetInt("accounts", "AdminLevel", "Player_ID", GetPVarInt(playerid, "PID"));
PlayerInfo[playerid][PayDayZeit] = mysql_GetInt("accounts", "PayDayZeit", "Player_ID", GetPVarInt(playerid, "PID"));
PlayerInfo[playerid][level] = mysql_GetInt("accounts", "Level", "Player_ID", GetPVarInt(playerid, "PID"));
PlayerInfo[playerid][health] = mysql_GetFloat("accounts", "Health", "Player_ID", GetPVarInt(playerid, "PID"));
PlayerInfo[playerid][money] = mysql_GetInt("accounts", "Money", "Player_ID", GetPVarInt(playerid, "PID"));
PlayerInfo[playerid][bank] = mysql_GetInt("accounts", "Bank", "Player_ID", GetPVarInt(playerid, "PID"));
PlayerInfo[playerid][beruf] = mysql_GetInt("accounts", "Beruf", "Player_ID", GetPVarInt(playerid, "PID"));
PlayerInfo[playerid][fraktion] = mysql_GetInt("accounts", "Fraktion", "Player_ID", GetPVarInt(playerid, "PID"));
PlayerInfo[playerid][skin] = mysql_GetInt("accounts", "Skin", "Player_ID", GetPVarInt(playerid, "PID"));
PlayerInfo[playerid][posx] = mysql_GetFloat("accounts", "PosX", "Player_ID", GetPVarInt(playerid, "PID"));
PlayerInfo[playerid][posy] = mysql_GetFloat("accounts", "PosY", "Player_ID", GetPVarInt(playerid, "PID"));
PlayerInfo[playerid][posz] = mysql_GetFloat("accounts", "PosZ", "Player_ID", GetPVarInt(playerid, "PID"));
}
}
Wie gesagt geladen werden sie angeblich aber in PlayerInfo[playerid][...] wirds nie gesichert