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?