hey bei mir speichert er die HP und Rüstung nicht, warum?
stock LoadAccount(playerid)
{
new Spielerdatei[64];
new name[MAX_PLAYER_NAME];
new Float:X,Float:Y,Float:Z,Float:health,Float:armour;
GetPlayerName(playerid,name,sizeof(name));
format(Spielerdatei,sizeof(Spielerdatei),"/Accounts/%s.txt",name);//accs
SetPlayerScore(playerid,dini_Int(Spielerdatei,"Level"));//Level
GivePlayerMoney(playerid,dini_Int(Spielerdatei,"Geld"));//gelp
SetPVarInt(playerid,"health",GetPlayerHealth(playerid,health));
SetPVarInt(playerid,"Armor",GetPlayerArmour(playerid,armour));
SetPVarInt(playerid,"Adminlevel",dini_Int(Spielerdatei,"Adminlevel"));//adminlevel
SetPVarInt(playerid,"Fraktion",dini_Int(Spielerdatei,"Fraktion"));//fraktion
SetPVarInt(playerid,"Baned",dini_Int(Spielerdatei,"Baned"));//banned
SetPVarInt(playerid,"Warn",dini_Int(Spielerdatei,"Warn"));//warn
SetPVarInt(playerid,"Autoschein",dini_Int(Spielerdatei,"Autoschein"));//autoschein
SetPVarInt(playerid,"Waffenschein",dini_Int(Spielerdatei,"Waffenschein"));//waffenschein
SetPVarInt(playerid,"Freezed",dini_Int(Spielerdatei,"Freezed"));//frezzet
SetPVarInt(playerid,"Supporter",dini_Int(Spielerdatei,"Supporter"));//Supporter
SetPVarInt(playerid,"Tutorial",dini_Int(Spielerdatei,"Tutorial"));//tutorial
SetPVarInt(playerid,"Haus",dini_Int(Spielerdatei,"Haus"));//Haus
SetPVarInt(playerid,"PaydayMenuten",dini_Int(Spielerdatei,"PaydayMenuten"));//PaydayMenuten
SetPVarInt(playerid,"ATMKarte",dini_Int(Spielerdatei,"ATMKarte"));//ATMKarte
SetPVarInt(playerid,"Radio",dini_Int(Spielerdatei,"Radio"));//Radio
SetPVarInt(playerid,"NebenJob",dini_Int(Spielerdatei,"NebenJob"));//NebenJob
SetPVarInt(playerid,"bizinhaber",dini_Int(Spielerdatei,"bizinhaber"));//bizinhaber
SetPlayerWantedLevel(playerid,dini_Int(Spielerdatei,"Wanteds"));//wanted
pInfo[playerid][Bank] = dini_Int(Spielerdatei, "Bank");//bank
SetPVarInt(playerid,"Ticket",dini_Int(Spielerdatei,"Ticket"));//Ticket
X = dini_Float(Spielerdatei,"X");
Y = dini_Float(Spielerdatei,"Y");
Z = dini_Float(Spielerdatei,"Z");
SetPlayerPos(playerid,X,Y,Z);
if(GetPVarInt(playerid,"Baned")==1)
{
SendClientMessage(playerid,ROT,"Du bist vom Server gebannt.");
Kick(playerid);
}
SetPVarInt(playerid,"loggedin",1);
return 1;
}
stock SpielerSpeichern(playerid)
{
if(GetPVarInt(playerid,"loggedin")==1)
{
new Spielerdatei[64];
new name[MAX_PLAYER_NAME];
new Float:x,Float:y,Float:z,Float:health,Float:armour;
GetPlayerPos(playerid,x,y,z);
GetPlayerName(playerid,name,sizeof(name));
format(Spielerdatei,sizeof(Spielerdatei),"/Accounts/%s.txt",name);
dini_IntSet(Spielerdatei,"Level",GetPlayerScore(playerid));
dini_IntSet(Spielerdatei,"Geld",GetPlayerMoney(playerid));
dini_FloatSet(Spielerdatei,"health",GetPlayerHealth(playerid,health));
dini_FloatSet(Spielerdatei,"Ruestung",GetPlayerArmour(playerid,armour));
dini_IntSet(Spielerdatei,"Adminlevel",GetPVarInt(playerid,"Adminlevel"));
dini_IntSet(Spielerdatei,"Radio",GetPVarInt(playerid,"Radio"));
dini_IntSet(Spielerdatei,"geschlecht",GetPVarInt(playerid,"geschlecht"));
dini_IntSet(Spielerdatei,"Fraktion",GetPVarInt(playerid,"Fraktion"));
dini_IntSet(Spielerdatei,"Warn",GetPVarInt(playerid,"Warn"));
dini_IntSet(Spielerdatei,"Baned",GetPVarInt(playerid,"Baned"));
dini_IntSet(Spielerdatei,"Autoschein",GetPVarInt(playerid,"Autoschein"));
dini_IntSet(Spielerdatei,"Motorradschein",GetPVarInt(playerid,"Motorradschein"));
dini_IntSet(Spielerdatei,"Waffenschein",GetPVarInt(playerid,"Waffenschein"));
dini_IntSet(Spielerdatei,"Freezed",GetPVarInt(playerid,"Freezed"));
dini_IntSet(Spielerdatei,"Wanteds",GetPVarInt(playerid,"Wanteds"));
dini_IntSet(Spielerdatei,"Handrang",GetPVarInt(playerid,"Handrang"));
dini_IntSet(Spielerdatei,"Jailtime",GetPVarInt(playerid,"Jailtime"));
dini_IntSet(Spielerdatei,"Jail",GetPVarInt(playerid,"Jail"));
dini_IntSet(Spielerdatei,"Ticket",GetPVarInt(playerid,"Ticket"));
dini_IntSet(Spielerdatei,"PaydayMenuten",GetPVarInt(playerid,"PaydayMenuten"));
dini_IntSet(Spielerdatei,"Tutorial",GetPVarInt(playerid,"Tutorial"));
dini_IntSet(Spielerdatei,"ATMKarte",GetPVarInt(playerid,"ATMKarte"));
dini_IntSet(Spielerdatei,"Haus",GetPVarInt(playerid,"Haus"));
dini_IntSet(Spielerdatei,"Supporter",GetPVarInt(playerid,"Supporter"));
dini_IntSet(Spielerdatei,"NebenJob",GetPVarInt(playerid,"NebenJob"));
dini_IntSet(Spielerdatei,"bizinhaber",GetPVarInt(playerid,"bizinhaber"));
dini_IntSet(Spielerdatei,"Skin",GetPlayerSkin(playerid));
dini_IntSet(Spielerdatei,"Arbeit",GetPlayerSkin(playerid));
dini_IntSet(Spielerdatei,"Bank",pInfo[playerid][Bank]);
dini_FloatSet(Spielerdatei,"X",x);
dini_FloatSet(Spielerdatei,"Y",y);
dini_FloatSet(Spielerdatei,"Z",z);
}
return 1;
}
er sagt laufend in der Spielerdatei
health=1.000000
Ruestung=1.000000
lg kifkat