Wenn ich GMX mache speichert er die X,Y,Z Koordinaten nicht ab
Pls Help.
dcmd_gmx(playerid,params[])
#pragma unused params
{
SendClientMessage(playerid,0xFF0000FF,"GMX erfolgreich!");
for(new i;i<MAX_PLAYERS;i++)
SavePlayerFile(i);
SendRconCommand("gmx");
}
SavePlayerFile(playerid)
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
new pname[MAX_PLAYERS],accFormat[128];
format(accFormat,sizeof accFormat,"/Chars/%s.datei",pname);
dini_IntSet(accFormat,"wanted",GetPlayerWantedLevel(playerid));
dini_IntSet(accFormat,"skin",GetPlayerSkin(playerid));
dini_FloatSet(accFormat,"lastx",x);
dini_FloatSet(accFormat,"lasty",y);
dini_FloatSet(accFormat,"lastz",z);
dini_FloatSet(accFormat,"money",GetPlayerMoney(playerid));
}
Edit// new Float:x, Float:y, Float:z; eingefügt