problem with "fexist", "fcreate"...
#9

pawn Код:
public OnPlayerDisconnect(playerid)
{
  new string[256];
  GetPlayerName(playerid, string, MAX_PLAYER_NAME);
  format(string, sizeof string, "%s.txt", string);
  new File:hFile = fopen(string, io_append);

  if (hFile)
  {
    format(string, sizeof string, "Monaie=%d\r\n", GetPlayerMoney(playerid));
    fwrite(hFile, string);
    fclose(hFile);
  }

  PLAYERLIST_authed[playerid] = false;
  return false;
}
Reply


Messages In This Thread
problem with "fexist", "fcreate"... - by darkot - 20.04.2009, 12:48
Re: problem with "fexist", "fcreate"... - by Klutty - 20.04.2009, 12:59
Re: problem with "fexist", "fcreate"... - by darkot - 20.04.2009, 13:35
Re: problem with "fexist", "fcreate"... - by darkot - 20.04.2009, 19:30
Re: problem with "fexist", "fcreate"... - by Donny_k - 20.04.2009, 19:35
Re: problem with "fexist", "fcreate"... - by darkot - 20.04.2009, 22:58
Re: problem with "fexist", "fcreate"... - by yom - 20.04.2009, 23:02
Re: problem with "fexist", "fcreate"... - by darkot - 21.04.2009, 09:11
Re: problem with "fexist", "fcreate"... - by yom - 21.04.2009, 09:47
Re: problem with "fexist", "fcreate"... - by darkot - 21.04.2009, 09:57

Forum Jump:


Users browsing this thread: 1 Guest(s)