Tag mismatch
#1

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;
}
It don't effect anything with the place of 'new Float:', it is the same problem with and without the [playerid] array.

I don't see the fault
Reply
#2

You're using Int set with floats.. You need floatset...

dini_FloatSet(filename[], key[], Float:value)
Reply
#3

whoops xD
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)