Results 1 to 6 of 6

Thread: back into scripting, and nooby errors again..

  1. #1
    Join Date
    May 2008
    Location
    127.0.0.1
    Posts
    705
    Mentioned
    1 Post(s)
    Quoted
    6 Post(s)

    Default back into scripting, and nooby errors again..

    i get indentifier expected on the ELSE line.

    SCAR Code:
    procedure setup;
    begin
      if players[currentplayer].booleans[1]= true then
      begin
        SMARTSetUp('world38', True, True, False); {World prefix, safe mode, unsigned, RS-HD}
        SetTargetDC(SMARTGetDC);
      end;
      else
      begin
        SetUpSRL;
        SRLPlayerForm(True, ['pick equiped','Use Smart?'], ['loads'], ['oretype'], []);
        activateclient;
        loginplayer;
      end;
    end;
    <Wizzup> And he's a Christian
    <Wizzup> So he MUST be trusted
    ___________________________________________
    <Wizzup> she sounds like a dumb bitch

  2. #2
    Join Date
    Sep 2008
    Location
    Earth
    Posts
    51
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Hey you need to make your script look like this
    SCAR Code:
    procedure setup;
    begin
      if players[currentplayer].booleans[1]= true then
      begin
        SMARTSetUp('world38', True, True, False); {World prefix, safe mode, unsigned, RS-HD}
        SetTargetDC(SMARTGetDC);
      end
      else
      begin
        SetUpSRL;
        SRLPlayerForm(True, ['pick equiped','Use Smart?'], ['loads'], ['oretype'], []);
        activateclient;
        loginplayer;
      end;
    end;
    post anymore questions if you need help


    ~lVlaverick~

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

    Default

    Or just merge end and eles into each other to make

    SCAR Code:
    End else


  4. #4
    Join Date
    Jul 2007
    Location
    Ottawa, Canada
    Posts
    930
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    also

    SCAR Code:
    players[currentplayer].booleans[1]= true
    can be replaced with simply
    SCAR Code:
    players[currentplayer].booleans[1]
    ~ Metagen

  5. #5
    Join Date
    May 2008
    Location
    127.0.0.1
    Posts
    705
    Mentioned
    1 Post(s)
    Quoted
    6 Post(s)

    Default

    Thanks everybody, mavericks worked, but now i get
    Out Of Range in line if players[currentplayer].booleans[1]= true then
    <Wizzup> And he's a Christian
    <Wizzup> So he MUST be trusted
    ___________________________________________
    <Wizzup> she sounds like a dumb bitch

  6. #6
    Join Date
    Sep 2008
    Posts
    0
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    cool

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Now this is nooby
    By RudeBoiAlex in forum OSR Help
    Replies: 1
    Last Post: 09-27-2007, 10:56 AM
  2. Really nooby but help
    By xKilla69x in forum OSR Help
    Replies: 1
    Last Post: 06-09-2007, 12:30 AM
  3. I'm back to SCAR scripting, and I need some help.
    By ub3r |<1||3r*1337* in forum OSR Help
    Replies: 7
    Last Post: 04-26-2007, 10: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
  •