Results 1 to 4 of 4

Thread: Will this work?

  1. #1
    Join Date
    May 2007
    Location
    UK
    Posts
    4,007
    Mentioned
    1 Post(s)
    Quoted
    12 Post(s)

    Default Will this work?

    Hey guys simple..
    Will this work?

    SCAR Code:
    'draynor':
          with Result do
          begin
            BankName := 'db';
            WalkToBank := @DraynorWillowOakBank;
            if Players[CurrentPlayer].Strings[0] := 'willow' then
            WalkToTree := @WalkToDWillows;
            else
            WalkToTree := @WalkToDOaks
            TreesAvailable := [ LoadTree('willow'), LoadTree('oak') ];
          end;
    I don't see why it shouldn't

    T~M

  2. #2
    Join Date
    Mar 2007
    Posts
    4,810
    Mentioned
    3 Post(s)
    Quoted
    3 Post(s)

    Default

    You need to get rid of the ';' on this line:

    SCAR Code:
    WalkToTree := @WalkToDWillows;

    But IMHO it would improve understandability if you added a Begin and End to it .

  3. #3
    Join Date
    Jun 2006
    Posts
    3,861
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    Remove the semi-colon from "WalkToTree := @WalkToDWillows;"

    EDIT: I lose.

  4. #4
    Join Date
    Mar 2007
    Posts
    4,810
    Mentioned
    3 Post(s)
    Quoted
    3 Post(s)

    Default

    Quote Originally Posted by bullzeye95 View Post
    Remove the semi-colon from "WalkToTree := @WalkToDWillows;"

    EDIT: I lose.
    Noo, Bullzeye you still win!!

    On topic: Nice to see the usage of pointers on the increase, after they were introduced into SRL.

    [offtopic]U gd?[/offtopic]

Thread Information

Users Browsing this Thread

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

Posting Permissions

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