Gdy nie było przed tym end; to pisało :
Kód: Vybrať všetko
Compiling error at New1 line 144 'end' or command expected but 'every' found
Gdy daję przed tym end;
Kód: Vybrať všetko
Compiling error at New1 line 145 : Expression expected
A jeśli chodzi o większą częśc tego kodu to proszę :
Kód: Vybrať všetko
every 0$1 trigger SeeArea(3,Droga) and
SeeArea(3,1) and SeeArea(3,Wrog) do
begin
wait (0$5);
ingameon;
centerNowOnUnits(10);
dialogueOn;
sayRadio(91,'tekst31');
dialogueoff;
Case Query('Pytanie1') of
1 : begin
// (...)
dialogueon;
say(10,'tekst32a');
sayRadio(91,'tekst33a');
dialogueoff;
ingameoff;
wait(0$10);
uc_side=3;
uc_nation=nation_russian;
uc_direction=0;
hc_name='(...)';
hc_sex=sex_male;
hc_class=class_soldier;
hc_attr=[10,13];
hc_basic_skills=[4, 2, 2, 1];
hc_skills=[6, 2, 3, 2];
hc_importance=0;
zolnierz1=CreateHuman;
PlaceUnitArea(zolnierz1,posilki,false);
uc_side=3;
uc_nation=nation_russian;
uc_direction=0;
hc_name='(...)';
hc_sex=sex_male;
hc_class=class_soldier;
hc_attr=[10,13];
hc_basic_skills=[4, 2, 2, 1];
hc_skills=[6, 2, 3, 2];
hc_importance=0;
zolnierz2=CreateHuman;
PlaceUnitArea(zolnierz2,posilki,false);
uc_side=3;
uc_nation=nation_russian;
uc_direction=0;
hc_name='(...)';
hc_sex=sex_male;
hc_class=class_scientistic;
hc_attr=[10,13];
hc_basic_skills=[2, 2, 2, 3];
hc_skills=[3, 2, 3, 5];
hc_importance=0;
zolnierz3=CreateHuman;
PlaceUnitArea(zolnierz3,posilki,false);
ChangeMissionObjectives('M01b');
end; // to jest end o którym pisałem wcześniej
every 0$5 do
begin
uc_side=1;
uc_nation=nation_american;
hc_skills=[6,1,2,3];
hc_class-class_soldier;
soldat1=createHuman;
soldat2=createHuman;
soldat3=createHuman;
soldat4=createHuman;
soldat5=createHuman;
PlaceUnitArea(soldat1,Inzynierowie,false);
PlaceUnitArea(soldat2,Inzynierowie,false);
PlaceUnitArea(soldat3,Inzynierowie,false);
PlaceUnitArea(soldat4,Inzynierowie,false);
PlaceUnitArea(soldat5,Inzynierowie,false);
AddComMoveToArea([soldat1,soldat2,soldat3,soldat4,soldat5],Baza);
AddComAttackUnit([soldat1,soldat2,soldat3,soldat4,soldat5],FilterAllUnits([f_side,2]));
enable;
end;
Zastąpiłem pewne nazwy "(...)" , aby nie zdradzać szczegółów