Author Topic: Problem OnGameChange Events  (Read 742 times)

0 Members and 2 Guests are viewing this topic.

Offline Gutts

  • Major(1)
  • Posts: 1
Problem OnGameChange Events
« on: May 03, 2012, 09:37:01 am »
Hi all; firts sorry  my eng is poor, but I need some help
I try to made a count game system, but var in OnGameEnd dont change

Code: [Select]
procedure OnGameEnd();
begin
        if (AlphaScore > BravoScore ) then
        begin
                AlphaGames:= AlphaGames+1;
        end;
        if (AlphaScore < BravoScore) then
        begin
                BravoGames:= BravoGames+1;
        end;
        if (AlphaScore = BravoScore ) then
        begin
                DrawGames:= DrawGames+1;
        end;
WriteConsole(0,'Marcador de Juegos Alpha '+inttostr(AlphaGames)+' Bravo '+inttostr(BravoGames)+' Empates '+inttostr(DrawGames
),C2Message);

end;

I put this in event OnMapChange and work fine, but I need count game end games.

thx por help !

Offline Falcon`

  • Flagrunner
  • ****
  • Posts: 792
  • A wanted lagger
Re: Problem OnGameChange Events
« Reply #1 on: May 03, 2012, 02:39:29 pm »
there's no OnGameEnd() event in soldat... yet.
If you rely on documentation available on http://enesce.com/help, then don't, it's out of date. Use devs wiki instead
If you're not paying for something, you're not the customer; you're the product being sold.
- Andrew Lewis

Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.