• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Server] Duplicate CallBack call
#3
(2021-03-19, 05:02 PM)Kodokushi Wrote:
Code:
public OnGameModeExit() {

? ? ON_GAMEMODE_EXIT_SAVE = true;



? ? // ..SAVE

? ? return true

}



public OnPlayerDisconnect(playerid, reason) {

? ? if(ON_GAMEMODE_EXIT_SAVE == true)

? ? ? ? return false;



? ? // ..SAVE

? ? return true;

}





I don't know if the values of the variables are kept after gmx, I never used that

If they are, you will have to modify the variable in OnGamemodeInit setting as 'false'.



When the player disconnects I save the data and reset the variables.
  Reply


Messages In This Thread
Duplicate CallBack call - by RhaegarX - 2021-03-19, 04:45 PM
RE: Duplicate CallBack call - by Kodokushi - 2021-03-19, 05:02 PM
RE: Duplicate CallBack call - by RhaegarX - 2021-03-19, 05:15 PM
RE: Duplicate CallBack call - by Pinch - 2021-03-19, 05:47 PM
RE: Duplicate CallBack call - by RhaegarX - 2021-03-19, 06:06 PM
RE: Duplicate CallBack call - by Pinch - 2021-03-19, 09:56 PM
RE: Duplicate CallBack call - by RhaegarX - 2021-03-20, 04:33 PM
RE: Duplicate CallBack call - by Pinch - 2021-03-20, 08:55 PM
RE: Duplicate CallBack call - by Y_Less - 2021-03-21, 12:16 PM
RE: Duplicate CallBack call - by Pinch - 2021-03-21, 05:42 PM

Forum Jump: