SA-MP Forums Archive
Problem on server - 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)
+--- Thread: Problem on server (/showthread.php?tid=533331)



Problem on server - Rockyyy - 23.08.2014

Hey guys im my server after i restart the server using the rcon cmd "GMX" all the connected players crash and i don't know whats the reason


Re: Problem on server - Metharon - 24.08.2014

Many reasons..

A) LOTS OF OBJECTS
B) A script bug which one can't handle all players?


Re: Problem on server - rymax99 - 24.08.2014

If you have a lot of removebuildings, that will happen. I don't believe there are any known fixes, either. You're usually better off at notifying players and then forcefully restarting the server to ensure there aren't any problems such as the 'you are banned from this server' bug.


Re: Problem on server - jakejohnsonusa - 24.08.2014

Disable all your filterscripts and see if it still happens (I'm guessing it will) if not, there's a OnFilterScriptExit issue in one of them.

If it still happens, there is likely something wrong in your OnGameModeExit callback or possibly your OnPlayerDisconnect callback.


Something that helps me sometimes, is adding simple debug messages in throughout these callbacks, this may help you to find where EXACTLY (the line) it's causing the crash.
Try adding this every 10 or so lines down in your OnGameModeExit callback (changing the pass # each time by +1):
pawn Код:
SendClientMessageToAll(-1, "[DEBUG]: Pass 1");

Also:
Quote:

When using OnGameModeExit() in conjunction with the 'rcon gmx' console command keep in mind there is a potential for client bugs to occur an example of this is excessive RemoveBuildingForPlayer() calls during OnGameModeInit() which could result in a client crash.




Re: Problem on server - Team_PRO - 24.08.2014

download nativechecker or crashdetect


Re: Problem on server - Rockyyy - 24.08.2014

All the deBug messages appeared and i use removeplayerbuilding under OnPlayerConnect


Re: Problem on server - jakejohnsonusa - 24.08.2014

About how many times (lines) do you have RemovePlayerBuilding?

Also, if you used the debug message, they all appeared and then the player crashed?


Re: Problem on server - Team_PRO - 24.08.2014

posting the log here will be useful


Re: Problem on server - Rockyyy - 24.08.2014

Quote:
Originally Posted by jakejohnsonusa
Посмотреть сообщение
About how many times (lines) do you have RemovePlayerBuilding?

Also, if you used the debug message, they all appeared and then the player crashed?
I have alot and about the message yes all appeared then player crashed


Re: Problem on server - jakejohnsonusa - 24.08.2014

If you have a lot, that's likely the issue. It states right on the OnGameModeExit wiki page that too many RemovePlayerBuilding's will crash players.

As I quoted earlier:
Quote:

When using OnGameModeExit() in conjunction with the 'rcon gmx' console command keep in mind there is a potential for client bugs to occur an example of this is excessive RemoveBuildingForPlayer() calls during OnGameModeInit() which could result in a client crash.

You'll have to remove some.