Author Topic: Notepad++....  (Read 2466 times)

0 Members and 1 Guest are viewing this topic.

Offline Drax

  • Soldier
  • **
  • Posts: 241
Notepad++....
« on: February 27, 2014, 01:42:03 am »
How to start writing a script in notepad++ and how to save your script like with what end after (.) to make it run correctly??

Offline Akinaro

  • Flagrunner
  • ****
  • Posts: 749
Re: Notepad++....
« Reply #1 on: February 27, 2014, 02:53:55 am »
just save it as a "Pascal Source file" or select from the list "All type" and after name of your script put .pas

and remember about "Includes.txt" file with name of script written there. It should be in the same folder where your script is

Offline Drax

  • Soldier
  • **
  • Posts: 241
Re: Notepad++....
« Reply #2 on: February 27, 2014, 04:32:11 am »
what is that includes.txt? I am noob ;/
also replay to this topic: http://forums.soldat.pl/index.php?topic=43315.0
and btw you know scripting ?
« Last Edit: February 27, 2014, 04:36:36 am by Drax »

Offline Drax

  • Soldier
  • **
  • Posts: 241
Re: Notepad++....
« Reply #3 on: February 27, 2014, 04:52:20 am »
Quote
just save it as a "Pascal Source file" or select from the list "All type" and after name of your script put .pas

I put pas and and it just saved as normal notepad file .txt and when I run it it opens in notepad ;/
when I save it with name.bath it runs but closes although it shouldnt, should wait for click, right?:
Uses CRT;

Const
 haslo='Pascal';

Var
 wprowadz:String;
 petla:byte;

Begin
  REPEAT
    ClrScr;
    GotoXY(31,12);
    Write('Podaj haslo : ');
    ReadLn(wprowadz);
    IF petla=4 THEN
    REPEAT
      ClrScr;
      GotoXY(31,12);
      Write('Access Denied !');
      Sound(3160);
      Delay(500);
      Sound(3190);
      Delay(500);
    UNTIL 1=2;
    petla:=petla+1;
  UNTIL wprowadz=haslo;
  { Haslo poprawne, dalsza część programu }
End.