19.07.2011, 10:55
This is what I tested.
If I dont remove player from arraylist when disconnect, it will crash when onExit.
And what I know is, SA-MP will first trigger OnPlayerDisconnect when gamemode exit.
So the arraylist should be empty when onExit, you will kick no one.
BTW, there's a "get" function in PlayerBase which can get online player vector.
If I dont remove player from arraylist when disconnect, it will crash when onExit.
And what I know is, SA-MP will first trigger OnPlayerDisconnect when gamemode exit.
So the arraylist should be empty when onExit, you will kick no one.
BTW, there's a "get" function in PlayerBase which can get online player vector.