Results 1 to 4 of 4

Thread: Unexpected end of file at line 0

  1. #1
    Join Date
    Nov 2011
    Location
    Southern Finland
    Posts
    48
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Unhappy Unexpected end of file at line 0

    So im working on this EXTREMELY basic chicken fighter, and i just cant get this to work. heres my whole script atm;

    program ChickenKiller;
    {$DEFINE SMART}
    {$i SRL/SRL.scar}

    Procedure DeclarePlayers;
    begin
    HowManyPlayers := 1;
    NumberOfPlayers(HowManyPlayers);
    CurrentPlayer := 0;

    with Players[0] do
    begin
    Name := '';
    Pass := '';
    Pin := '';
    BoxRewards := ['XP','xp','lamp'];
    LampSkill := 'Runecrafting';
    Active := True;
    end;
    end;


    Procedure AntiBan;
    begin
    if(not(LoggedIn))then
    Exit;
    FindNormalRandoms;
    case Random(8) of
    0:
    end;
    end;


    procedure SetupChar;
    begin
    MakeCompass(270);
    SetAngle(True);
    Retaliate(True);
    end;




    procedure Attack;
    var x,y: integer;
    begin;
    FindNormalRandoms;
    if FindObj(x, y, 'hicken', 9487576, 30) then
    Mouse(x, y, 2, 2, false);
    ChooseOption('ttack');
    repeat
    Wait(1200+random(250));
    FindNormalRandoms;
    if (HPPercent < 20) then
    Logout;




    Begin

    Smart_Server:=35;
    SetupSRL;
    ActivateClient;
    DeclarePlayers;
    SetUpChar;
    Repeat
    Antiban;
    Attack;
    Until (false)
    end;

    it just gives me the error i mentioned above, could someone plz help?

    Also i did try searching, and someone had answered, that it lacks an end in the end of the whole script, but that didnt seem to fix the problem
    Last edited by Elmeri233; 01-04-2012 at 01:58 AM. Reason: A lil updating

  2. #2
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    Missing the begin end. with a dot..
    I am Ggzz..
    Hackintosher

  3. #3
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    You need to make an action in your Antiban case.
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


  4. #4
    Join Date
    Nov 2011
    Location
    Southern Finland
    Posts
    48
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Riight, you need a beginning end with a dot. Im really suprised you could answer so fast O.o also i gave the antiban some actions. Thanks for the help ggzz & Kyle

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
  •