04.03.2012, 10:30
pawn Код:
new pName[24], PlayerFile[50];
new Float:PX, Float:PY, Float:PZ;
GetPlayerName(playerid, pName, sizeof(pName));
format(PlayerFile, sizeof(PlayerFile), "Positions/%s.ini", pName);
GetPlayerPos(playerid, PX, PY, PZ);
PlayerInfo[playerid][PlayerX] = PX; //This line
PlayerInfo[playerid][PlayerY] = PY; // This line
PlayerInfo[playerid][PlayerZ] = PZ; //This line
dini_FloatSet(PlayerFile, "PlayerX", PlayerInfo[playerid][PlayerX]);
dini_FloatSet(PlayerFile, "PlayerY", PlayerInfo[playerid][PlayerY]);
dini_FloatSet(PlayerFile, "PlayerZ", PlayerInfo[playerid][PlayerZ]);
dini_IntSet(PlayerFile, "Spawn", 2);
Thanks