09.06.2015, 18:58
Welcome. I have a question related to "OnPlayerDisconnect".
In cases of withdrawal of a problem with the game "OnPlayerDisconnect" is triggered immediately, but within 5-10 seconds.
When connecting "OnPlayerConnect ID" is displayed instantly.
When you exit the game [/q(uit)] similarly, in an instant.
But when removing the task is not a small delay, you can check for yourself.
I need to reset the variables, is it wise to update them in "OnPlayerConnect"?
In cases of withdrawal of a problem with the game "OnPlayerDisconnect" is triggered immediately, but within 5-10 seconds.
PHP код:
#include <a_samp>
main() { }
public OnGameModeInit() return true;
public OnPlayerConnect(playerid) return printf("OnPlayerConnect: %d", playerid);
public OnPlayerDisconnect(playerid, reason) return printf("OnPlayerDisconnect: %d", playerid);
When you exit the game [/q(uit)] similarly, in an instant.
But when removing the task is not a small delay, you can check for yourself.
I need to reset the variables, is it wise to update them in "OnPlayerConnect"?