0 Members and 1 Guest are viewing this topic.
procedure StartMatch();var i:byte;begin MatchOn:=true; .. Anty := 1;... Command('/restart');end;
procedure LeaveGame(Player: TActivePlayer; Kicked: Boolean);begin if (MatchOn) then begin if (PlayerInfo[Player.ID].InMatch) then CheckBattle(Player.ID); end;....end;
procedure CheckBattle(Loser:byte);var i, Winner, One, Two: byte; x:integer;begin if (Anty=1) then anty:=0 else begin if (GameStyle = 0) then begin Writeln('TEST 001'); if (MatchOn) then begin Writeln(inttostr(loser)); Writeln('TEST 002'); for i := 1 to 32 do if (Players[i].Active) then if (PlayerInfo[i].InMatch) then One:=i; Writeln('TEST 003'); for i := 1 to 32 do if (Players[i].Active) then if (PlayerInfo[i].InMatch) and (One<>i) then Two:=i; Writeln('ID '+inttostr(one)+' '+inttostr(two)); //result 1 and 0 LOL <--- RETURN 0 :O HOW if (Players[One].Kills>=MinimalKills) or (Players[Two].Kills>=MinimalKills) then begin Writeln('TEST 004');