Author Topic: Is the OnLeaveGame called correctly?  (Read 1244 times)

0 Members and 1 Guest are viewing this topic.

Offline Avarax

  • Veteran
  • *****
  • Posts: 1529
    • Official Hexer & MMod site
Is the OnLeaveGame called correctly?
« on: March 05, 2007, 04:49:44 pm »
Code: [Select]
procedure OnLeaveGame(IP, Nickname: string;Team: byte);
begin
  If soldier[IPtoID(IP)].login then
    SaveAccount(IPtoID(IP));
end;

SaveAccount doesn't apply although the condition is true... could it be something about OnLeaveGame not working properly?
When is OnLeaveGame called?
I like to have one Martini
Two at the very most
Three I'm under the table
Four I'm under the host

Offline EnEsCe

  • Retired Soldat Developer
  • Flamebow Warrior
  • ******
  • Posts: 3101
  • http://enesce.com/
    • [eC] Official Website
Re: Is the OnLeaveGame called correctly?
« Reply #1 on: March 05, 2007, 09:07:39 pm »
The parameters of OnLeaveGame come up as nothing because of a bug.

Offline chase is my name

  • Major(1)
  • Posts: 19
Re: Is the OnLeaveGame called correctly?
« Reply #2 on: March 14, 2007, 02:28:43 am »
I've noticed that OnLeaveGame, OnJoinGame are only called SOMETIMES. I'm going to start a new thread about the bugs I've noticed, but no you're not going crazy.