Results 1 to 4 of 4

Thread: Problem With Forms

  1. #1
    Join Date
    Jul 2007
    Posts
    104
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Problem With Forms

    I am working on a script for the mining guild and I have to problems I am pretty new to SRL but not programming. It complies fine but it does almost like a run time error and crashes SCAR thats the first problem the second problem is I cant seem to get the radial walk to work. If someone could help me with this that would be wonderfull I must warn this scrip is very very new and needs alot of work. So anyone that takes a look at it thank you so much ahead of time and suggestions are always welcome. Also if someone whos really good at Forms wants to help me with some stuff I would love some help please just send me a private message I have some questions.

  2. #2
    Join Date
    Oct 2006
    Posts
    412
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    im trying to figure out why your form crashes right now.

    EDIT1: OKIES I THINK I GOT IT!

    EDIT2: Ok the problem is with the form editor in SCAR, for some reason part of the form design code has been leftout/removed.

    ADD these 3 procedures to the top of your program, above procedure FormDesign;

    SCAR Code:
    procedure ShowFormModal;
    begin
      frmDesign.Show;
    end;

    procedure SafeShowFormModal;
    var
      v: TVariantArray;
    begin
      setarraylength(V, 0);
      ThreadSafeCall('ShowFormModal', v);
    end;

    procedure SafeInitForm;
    var
      v: TVariantArray;
    begin
      setarraylength(V, 0);
      ThreadSafeCall('FormDesign', v);
    end;

    and make this your main loop (main function) for now.
    SCAR Code:
    begin  //Main Function//
    SetupSRL;
    ClearDebug;
    SafeInitForm;
    SafeShowFormModal;
    Welcome;
    repeat
    wait(1000);
    until (IsFKeyDown(12));//this repeat until is temporary untill you give your buttons actions
    //WalkToMine;
    end.

  3. #3
    Join Date
    Jul 2007
    Posts
    104
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

  4. #4
    Join Date
    Oct 2006
    Posts
    412
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Glad it worked for you , now if only we knew why the ThreadSafeCall procedures were removed from the Forum plugin in scar...

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Forms problem!! (color pciker involved)
    By sink998 in forum OSR Help
    Replies: 2
    Last Post: 09-17-2008, 09:30 PM
  2. Forms again....
    By Pure1993 in forum OSR Help
    Replies: 6
    Last Post: 05-05-2008, 06:31 PM
  3. Forms
    By marre in forum OSR Help
    Replies: 2
    Last Post: 12-19-2007, 07:53 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •