Results 1 to 5 of 5

Thread: Smart setup..

  1. #1
    Join Date
    Mar 2008
    Location
    Look behind you.
    Posts
    795
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default Smart setup..

    Me and my nooby questions are back

    When trying to setup Smart:
    SCAR Code:
    {$IFDEF srl_SMART}
        Smart_Server:=113;
        Smart_Members:=Players[currentplayer].booleans[0];
        Smart_Signed:=True;
        Smart_SuperDetail:=False;
      {$ENDIF}

    I always get this error:
    SCAR Code:
    Line 181: [Error] (17199:1): Unknown identifier 'Smart_Server' in script C:\Users\RODRIG~1\AppData\Local\Temp\Ardy Silk Theiver.scar

    can anyone tell me why i keep getting errors?

  2. #2
    Join Date
    Jul 2008
    Location
    England
    Posts
    763
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by DeSnob View Post
    Me and my nooby questions are back

    When trying to setup Smart:
    SCAR Code:
    {$IFDEF srl_SMART}
        Smart_Server:=113;
        Smart_Members:=Players[currentplayer].booleans[0];
        Smart_Signed:=True;
        Smart_SuperDetail:=False;
      {$ENDIF}

    I always get this error:
    SCAR Code:
    Line 181: [Error] (17199:1): Unknown identifier 'Smart_Server' in script C:\Users\RODRIG~1\AppData\Local\Temp\Ardy Silk Theiver.scar

    can anyone tell me why i keep getting errors?
    Did you remember to add: {.include SRL/SRL/Misc/Smart.scar} at the top of your script?
    lol

  3. #3
    Join Date
    Mar 2008
    Location
    Look behind you.
    Posts
    795
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    yeah. Still wondering what's the issue

    Edit: here's the way i'm setting my new script up.
    SCAR Code:
    program New;
    {.include SRL/SRL/Misc/Smart.scar}
    {$DEFINE srl_SMART}
    {.include SRL/SRL.scar}
    {.include SRL/SRL/reflection/reflection.scar}


    Procedure SetupSmart;
    begin
      {$IFDEF srl_SMART}
        Smart_Server:=113;
        Smart_Members:=Players[currentplayer].booleans[0];
        Smart_Signed:=True;
        Smart_SuperDetail:=False;
      {$ENDIF}
    end;

    procedure ScriptSetup;
    begin
      DeclarePlayers;
      SetupSmart;
      SetupSRL;
      If(Not(R_Loggedin))Then
        SelectWorld(RandomWorld(Players[currentplayer].booleans[0],false));
    end;

    begin
    SetSmart;
    SetUpSRL;
    end.

  4. #4
    Join Date
    Jul 2008
    Location
    England
    Posts
    763
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Hmmm, i got it to work, but i didn't change anything

    SCAR Code:
    program New;
    {.include SRL/SRL/Misc/Smart.scar}
    {.include SRL/SRL.scar}
    {.include SRL/SRL/reflection/reflection.scar}


    Procedure SetupSmart;
    begin
      {$IFDEF srl_SMART}
        Smart_Server:=113;
        Smart_Members:=False;
        Smart_Signed:=True;
        Smart_SuperDetail:=False;
      {$ENDIF}
    end;

    begin
    SetupSmart;
    SetUpSRL;
    end.

    Are you at the latest SRL rev?
    lol

  5. #5
    Join Date
    Mar 2008
    Location
    Look behind you.
    Posts
    795
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Thanks >.> worked

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
  •