13.06.2010, 19:05
I need help fixing this...
Код:
public OnPlayerDisconnect(playerid, reason) { new pName[24], PlayerFile[50]; new Float:PX, Float:PY, Float:PZ; GetPlayerName(playerid, pName, sizeof(pName)); format(PlayerFile, sizeof(PlayerFile), "SFRP/users/%s.ini", pName); GetPlayerPos(playerid, PX, PY, PZ); PlayerInfo[playerid][PlayerX] = PX; PlayerInfo[playerid][PlayerY] = PY; PlayerInfo[playerid][PlayerZ] = PZ; dini_IntSet(PlayerFile, "PlayerX", PlayerInfo[playerid][PlayerX]); dini_IntSet(PlayerFile, "PlayerY", PlayerInfo[playerid][PlayerY]); dini_IntSet(PlayerFile, "PlayerZ", PlayerInfo[playerid][PlayerZ]); dini_IntSet(PlayerFile, "Spawn", 2); return 1; }