• На помощь!!!
    Пишет что нельзя преобразовать тип function(maxValue: integer):integer к integer. Только подробно пожалуйста. 22 строка

    program Game_UP;

    uses graphABC;

    type
    point = record
    x, y: integer;
    end;

    var
    Main_heroes, Background, Platform: picture;
    Left, Right, x, y, i, h: integer;
    vx, vy: real;
    platforms: array[1..10] of point;
    game: boolean;

    begin
    window.Caption := 'UP!_v1.0';
    setwindowsize(450, 720);
    Main_heroes := picture.Create('data\Main_heroes.png');
    Background := picture.Create('data\Background.jpg');
    Platform := picture.Create('data\Platform.jpg');
    x := 225;y := 360;
    for i := 1 to 10 do
    begin
    platforms[i].x := random{450};
    platforms[i].y := random{720};
    end;

    game := true;

    while game do

    begin
    background.Draw{0,0};


    end;





    end.

Ответы 1

  • Скобки в Random() должны быть круглыми. Да и в прочих местах тоже. Фигурные скобки - это признак комментария.

    • Автор:

      snooptxk5
    • 6 лет назад
    • 0
  • Добавить свой ответ

Войти через Google

или

Забыли пароль?

У меня нет аккаунта, я хочу Зарегистрироваться

How much to ban the user?
1 hour 1 day 100 years