[Help] Problem with positon save
#4

Quote:
Originally Posted by Mauka4
Im using this script:

pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
  new str[256], plname[MAX_PLAYER_NAME];
  GetPlayerName(playerid, plname, sizeof(plname));
  format(str, sizeof(str), "%s.ini", plname);  
  new Float:X, Float:Y, Float:Z;
  GetPlayerPos(playerid, X, Y, Z);
  dini_FloatSet(str, "X", X);
  dini_FloatSet(str, "Y", Y);
  dini_FloatSet(str, "Z", Z);
  return 1;
}

public OnPlayerRequestSpawn(playerid)
{
  new str[256], plname[MAX_PLAYER_NAME];
  GetPlayerName(playerid, plname, sizeof(plname));
  format(str, sizeof(str), "%s.ini", plname);  
  SetPlayerPos(playerid, dini_Float(str, "X"), dini_Float(str, "Y"), dini_Float(str, "Z"));
  return 1;
}
So it doesn't saves position to the file?
It's strange cause everything seems to be ok with the code...
Reply


Messages In This Thread
[Help] Problem with positon save - by Mauka4 - 01.08.2009, 18:58
Re: [Help] Problem with positon save - by SiJ - 01.08.2009, 19:01
Re: [Help] Problem with positon save - by Mauka4 - 01.08.2009, 19:22
Re: [Help] Problem with positon save - by SiJ - 01.08.2009, 19:25
Re: [Help] Problem with positon save - by _ASUS_ - 01.08.2009, 19:25
Re: [Help] Problem with positon save - by Mauka4 - 01.08.2009, 19:37
Re: [Help] Problem with positon save - by JonathanRulez09 - 01.08.2009, 19:47
Re: [Help] Problem with positon save - by SiJ - 01.08.2009, 19:59
Re: [Help] Problem with positon save - by _ASUS_ - 01.08.2009, 20:02
Re: [Help] Problem with positon save - by Mauka4 - 02.08.2009, 08:51

Forum Jump:


Users browsing this thread: 1 Guest(s)