Callback.
#1

Is the Function Below called when the console/server is exited?
pawn Код:
public OnPlayerDisconnect(playerid, reason)
Reply
#2

No it is called when a player dsconnects.

EDIT:
pawn Код:
public OnGameModeExit()
When server is exited.
Reply
#3

Its that little time after you quit the server, the function is called
Reply
#4

Quote:
Originally Posted by JhnzRep
Посмотреть сообщение
No it is called when a player dsconnects.

EDIT:
pawn Код:
public OnGameModeExit()
When server is exited.
Everyone disconnects when that function is called.
So don't you think it's called when the server is exited?
Reply
#5

Quote:
Originally Posted by BetaLaxx
Посмотреть сообщение
Everyone disconnects when that function is called.
So don't you think it's called when the server is exited?
That function is called (OnGameModeExit()) when you close the "sa-mp server.exe" in the server folder I think, and closing that "sa-mp server.exe" the server goes down
Reply
#6

I didn't understand what you meant, yes it is called. But it is called a little time after, meaning if you are trying to save stats on GMX your gona have a problem.

If this is what you need, then here is a tutorial how to get by that. https://sampforum.blast.hk/showthread.php?tid=319439
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)