08.06.2009, 21:40
pawn Код:
new Float:PlayerXPos[MAX_PLAYERS];
new Float:PlayerYPos[MAX_PLAYERS];
new Float:PlayerZPos[MAX_PLAYERS];
public OnPlayerDisconnect(playerid, reason)
{
if(PlayerLoggedIn[playerid] == true)
{
GetPlayerPos(playerid, PlayerXPos[playerid], PlayerYPos[playerid], PlayerZPos[playerid]);
dini_IntSet(file,"X Pos",PlayerXPos[playerid); //Here
dini_IntSet(file,"Y Pos",PlayerYPos[playerid]); //Here
dini_IntSet(file,"Z Pos",PlayerZPos[playerid]); //And here
}
PlayerXPos[playerid] = 0;
PlayerYPos[playerid] = 0;
PlayerZPos[playerid] = 0;
return 1;
}
I don't see the fault