Mój kod:
Code: Select all
every 0$1 MARKED 99 do
Begin
enable;
If IsInArea(postac, koniec111) then
AddMedal('kur',1);
If IsOk(ak) then
begin
AddMedal('ak',1);
SaveVariable(GetLives(ak),'ak_live');
SaveVariable(GetLives(postac),'postac_live');
GiveMedals('Main');
RewardPeople([postac,ak]);
SaveCharacters(ak,'ak');
SaveCharacters(postac,'postac');
If IsOk(ff) then
begin
AddMedal('ff',1);
SaveVariable(GetLives(ff),'ff_live');
SaveVariable(GetLives(postac),'postac_live');
GiveMedals('Main');
RewardPeople([postac,ff]);
SaveCharacters(ff,'ff');
SaveCharacters(postac,'postac');
YouWin;
end;
If IsDead(ak) then
Begin
AddMedal('ak',-1);
GiveMedals('Main');
RewardPeople(postac);
SaveCharacters(postac,'postac');
SaveVariable(GetLives(postac),'postac_live');
If IsDead(ff) then
begin
AddMedal('ff',-1);
SaveVariable(GetLives(ff),'ff_live');
SaveVariable(GetLives(postac),'postac_live');
GiveMedals('Main');
RewardPeople([postac,ff]);
SaveCharacters(ff,'ff');
SaveCharacters(postac,'postac');
YouWin;
disable(99);
end;
end;
end;
end;
Proszę o pomoc
