Results 1 to 7 of 7

Thread: My first (half) script Question

  1. #1
    Join Date
    Mar 2012
    Posts
    16
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default My first (half) script Question

    So I was creating my first scripts of a guide.. this is what I ended with...
    program new;
    {$i srl/srl.simba}

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

    Players[0].Name := '';
    Players[0].Pass := '';
    Players[0].Nick := '';
    Players[0].Active:=True;
    end;



    begin
    SetupSRL;
    ActivateClient;
    DeclarePlayers;
    LoginPlayer;
    end.

    Some people may think I just copied this of the guide (but I was able to end up with the same thing ) but my question is howcome when I click play the client does not open? Can someone tell me how to insert the box with the text in it also thanks

  2. #2
    Join Date
    Dec 2011
    Posts
    392
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Add;
    Simba Code:
    {$DEFINE SMART}
    At the top to launch smart. Under or above {$i srl/srl.simba}

    Would do you mean by 'insert the box with the text' btw?

  3. #3
    Join Date
    Oct 2011
    Location
    UK
    Posts
    1,322
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default

    What he said or you can just put:

    Simba Code:
    {.include srl/srl.simba}   //what you have already
    {.include srl/srl/misc/Smart.simba}  //the new bit

  4. #4
    Join Date
    Feb 2012
    Posts
    119
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Theirs a simba looking thing on the top right, click that and put text in between. wallah

  5. #5
    Join Date
    Jan 2012
    Posts
    522
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You need to declare smart.

  6. #6
    Join Date
    Jan 2012
    Posts
    125
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    my basic template

    program (script name)
    {$DEFINE SMART}
    {$DEFINE SRL5}
    {$i srl/srl.simba}

    const
    SRLStats_Username = '';// SRL Stats ID
    SRLStats_Password = '';// SRL Stats Pass
    (more constants)


    var
    (variables here)

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

    with Players[0] do
    begin
    Name :=''; // Username
    Pass :=''; // Password
    Nick :=''; //
    Pin :=''; // PINS
    Member := true;
    Active := true;
    end;
    end;

  7. #7
    Join Date
    Jan 2012
    Posts
    319
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    You could use the

    Writeln(''); <----oops I wrote an I in there at first instead of l

    to put text into your debug box. so once you declare smart, you can have your main program be:

    begin
    SetupSRL; //<-----make sure to use proper format idt it shows the proper spaces that I put in their, but you get
    DeclarePlayers; //the idea
    LoginPlayer;
    Writeln('Yay we logged into the game');
    end.
    Writeln has an L and not an I in it. I always got confused with this. You can copy and paiste this into a new simba file and hit play and it will say "Hey homies" indefinitely in the debug box.



    program SayHi;


    Procedure Talk;
    Begin
    Writeln('Hey homies');
    End;

    Begin
    Repeat Talk;
    Until (False);
    End.
    Hope I was of help! Gl with your script
    Last edited by [D]ude; 03-21-2012 at 06:27 PM.
    -My Scripts-
    Dude'sFighters
    Dude'sBonfires
    Donations help with scripting Paypal!

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
  •