Problem In Going To Saved Positions.
#1

When I Spawn I Don't Go To My Saved Positions,It Goes To The Position Of "AddPlayerClass" Function.

Codes:

pawn Код:
public OnPlayerSpawn(playerid)
{
    GetPlayerName(playerid, pname, sizeof(pname)); //  This get's the player name with the name length
    GetPlayerPos(playerid, PX[playerid], PY[playerid], PZ[playerid]);
    format(file2, sizeof(file2), savefolder2,pname); // Formatting file
    if(dini_Exists(file2))  // If the file exist
    {
      SetPlayerPos(playerid, PX[playerid], PY[playerid], PZ[playerid]);
    }
    return 1;
}
Note: I Use DINI.
Reply


Messages In This Thread
Problem In Going To Saved Positions. - by Youssef214 - 18.04.2014, 19:26
Re: Problem In Going To Saved Positions. - by AhmedMohamed - 18.04.2014, 19:30
Re: Problem In Going To Saved Positions. - by Youssef214 - 18.04.2014, 19:31
Re: Problem In Going To Saved Positions. - by AhmedMohamed - 18.04.2014, 19:37
Re: Problem In Going To Saved Positions. - by Youssef214 - 18.04.2014, 19:38
Re: Problem In Going To Saved Positions. - by AhmedMohamed - 18.04.2014, 19:42
Re: Problem In Going To Saved Positions. - by Youssef214 - 18.04.2014, 19:45
Re: Problem In Going To Saved Positions. - by Youssef214 - 18.04.2014, 19:54
Re: Problem In Going To Saved Positions. - by AhmedMohamed - 18.04.2014, 19:58

Forum Jump:


Users browsing this thread: 4 Guest(s)