RSS | Roulette Scripter Studio | Lesson 1 | Introduction. “Hello world !”
     
This tutorial was made by Silver
http://www.money-maker-machine.com/forum/profile/Silver/
 
1. RSS introduction. “Hello world !”. (The basic structure of the script, comments.)
 
So, lets get started with the first RSS language lesson.

0.
First of all read - what is RSS.
http://www.money-maker-machine.com/roulette-scripter-studio-full-guide.htm
http://www.money-maker-machine.com/create-your-roulette-system-using-roulette-scripter-studio.htm

I.
Type in the Code Explorer the following code exactly as you see it:

begin
  print('Hello World !');
end;


Run your script by selecting Run from the Debug-menu (or press F9).
You will notice that the text Hello world ! appeared in the console.
You have just written your first RSS script!

Let modify your first script:
begin
  print('Hello World !');
  print('Hello Casino - I will bet you soon !');
end;


notes :
  • In order to clear the console - select Clear Console from the View-menu .
  • Using File-menu you can save and open your scripts.
  • The words begin and end followed by a semicolon ( end; ) indicates where the script begin and end.
  • The word print print a text on the console. What is written is whatever you write within the print-command (between the two ' -characters).
  • Semicolon ( ; ) indicates how long the RSS is supposed to translate before beginning with the next command.


II.
The basic structur
e of a RSS script is:

USES (* libraries declarations *)

VAR  (* Variable declarations *)

(* functions and procedures *)

BEGIN
  (* Executable statements *)
END;


The elements of a script must be in the correct order, though some may be omitted if not needed.

Here's a script that does nothing, but has all the required elements:
begin
end;


III.
Comments are things that are used to explain what parts of a script do. Comments are ignored by the RSS and are only there for the people who use the script.
Comments must be put between curly brackets. Also you may use double slash -  in order to comment only one line.
You should always have a comment at the top of your script to say what it does as well as comments for any script that is difficult to understand. Here is an example of how to comment the script we just made:

{This script will print "Hello world !" and will not print "Hello Casino - I will bet you soon !".}
begin
  print('Hello World !');
  //print('Hello Casino - I will bet you soon !');
end;


IV.
Indentation

You will notice that there are 2 spaces in front of some of the commands. This is called indentation and it is used to make a script easier to read. A lot of beginners do not understand the reason for indentation and don't use it but when we start making longer, more complex scripts, you will understand.

The next two scripts runs perfectly. The only difference is: neatness and friendliness of the second.
the first:
begin
  print('Hello World !');
  print('Hello Casino - I will bet you soon !');
end;


the second:
begin print('Hello World !'); print('Hello Casino - I will bet you soon !'); end;

V.
Write a script to print the the following words on the console.
          Hello. What are you doing now?
          I am writing my first RSS script.
 
Copyright © 2007-2011, All rights reserved to Money Maker Machine