SA-MP Forums Archive
[Linux] Server Crashing on player disconnect ! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [Linux] Server Crashing on player disconnect ! (/showthread.php?tid=93183)



[Linux] Server Crashing on player disconnect ! - RaFsTar - 23.08.2009

When a player disconnects on my server, my server crashes and it's notified on linux shell - konsole:

Код:
samp: amx/amxfile.c:101 fgets_cell: Assertion 'fp!=((avoid *)0)' failed.
Here is my OnPlayerDisconnect:

Код:
public OnPlayerDisconnect(playerid, reason)
{
  if (Logged[playerid])
  {
  dUserSetINT(PlayerName(playerid)).("Money",GetPlayerMoney(playerid));
  dUserSetINT(PlayerName(playerid)).("Rcash",GetPlayerEuro(playerid));
  dUserSetINT(PlayerName(playerid)).("Admin",GetPlayerAdminLvl(playerid));
  dUserSetINT(PlayerName(playerid)).("Job",GetPlayerJobID(playerid));
  dUserSetINT(PlayerName(playerid)).("WL",GetWeaponLicence(playerid));
  dUserSetINT(PlayerName(playerid)).("Activity",GetPlayerAct(playerid));
  dUserSetINT(PlayerName(playerid)).("Cps",GetPlayerCps(playerid));
  dUserSetINT(PlayerName(playerid)).("CP",GetPlayerCP(playerid));
  dUserSetINT(PlayerName(playerid)).("Hit",GetPlayerHit(playerid));
  dUserSetINT(PlayerName(playerid)).("Ppoints",GetPlayerPP(playerid));
  dUserSetINT(PlayerName(playerid)).("Banned",GetPlayerBan(playerid));
  dUserSetINT(PlayerName(playerid)).("Suspect",GetPlayerSuspect(playerid));
  dUserSetINT(PlayerName(playerid)).("Jailed",GetPlayerJail(playerid));
  new Float:x,Float:y,Float:z;
  new IP[50];
  GetPlayerIp(playerid, IP, sizeof IP);
  GetPlayerPos(playerid,x,y,z);
  dUserSet(PlayerName(playerid)).("IP",IP);
  dUserSetINT(PlayerName(playerid)).("x",floatround(x));
  dUserSetINT(PlayerName(playerid)).("y",floatround(y));
  dUserSetINT(PlayerName(playerid)).("z",floatround(z));
  dUserSetINT(PlayerName(playerid)).("Interior",GetPlayerInterior(playerid));
  if(Skin[playerid]>1)
	  {
	  dUserSetINT(PlayerName(playerid)).("Skin",Skin[playerid]);
	  }
	SaveWeapons(playerid);
	SavePlayerInventoryToFile(playerid);	
  }
  return 1;
}
I hop get some help


Re: [Linux] Server Crashing on player disconnect ! - [FoD]Fabio - 23.08.2009

look as if everything is what the script does, ie, whether all the script files are present, whether everything you've also scripted, is available. And whether the right to announce samp02x.svr as well as the right to 777 lie.


Re: [Linux] Server Crashing on player disconnect ! - RaFsTar - 23.08.2009

Quote:
Originally Posted by [FoD
Fabio ]
look as if everything is what the script does, ie, whether all the script files are present, whether everything you've also scripted, is available. And whether the right to announce samp02x.svr as well as the right to 777 lie.
Yes i have done that, i can't find the problem.

777 lie ?


Re: [Linux] Server Crashing on player disconnect ! - RaFsTar - 23.08.2009

If i run it @root , it works fine. I think it's a error of permissions.