18.04.2014, 19:26
When I Spawn I Don't Go To My Saved Positions,It Goes To The Position Of "AddPlayerClass" Function.
Codes:
Note: I Use DINI.
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;
}