Restored from previous forum. Originally posted by K.D.C..
My program runs with qBasic, when i press F5, but when I want to Compile it, theres the message "Line... , Syntax error"
Im hoping that somebody of you could help me.
Heres the Code:
PRINT " Kapitel 1"
PRINT "Du erwachst, mit starken Kopfschmerzen, in einem dunklem Raum und kannst dich nicht an den Grund deines unfreiwilligen Aufenthaltes, in demselben erinnern."
PRINT "Nach einer kurzen Phase der Orientierung musst du entsetzt feststellen, das man dich in eine art Besenkammer gesperrt hat. Doch du hast noch Hoffnung, denn du hâ€
PRoblem with the Syntax
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Max..
Hi KDC,
as it is a little bit too long, just a part of it
In short:
- Open a console first
- instead of PRINT "" use Print("") PrintN("")
- no THEN in conditional expressions
- INPUT is Input(), and returns a string variable (therefor the i.s for the variable i). Input cannot generate output, so split the line to Print & Input.
- END IF is written together in PureBasic, thus EndIF
In the Help, look into the information provided in the section "Console".
Max.
Hi KDC,
as it is a little bit too long, just a part of it
Code: Select all
If OpenConsole() PrintN ("Was willst du machen")
PrintN ("(1) Die beiden belauschen oder (2) Um Hilfe rufen ?")
i.s=Input()
If i.s = "1"
PrintN ("-------------------------------------------------------------------------------")
PrintN ("Du verstehst kaum etwas, da die beiden auf einer dir fremden Sprache sprechen.")
PrintN ("Die kurzen Sprachfetzen die du verstehst, lass dich aber verstehen, das du von ihnen dort eingesperrt wurdest.")
EndIf
EndIf
Repeat:Until Inkey()""
End
- Open a console first
- instead of PRINT "" use Print("") PrintN("")
- no THEN in conditional expressions
- INPUT is Input(), and returns a string variable (therefor the i.s for the variable i). Input cannot generate output, so split the line to Print & Input.
- END IF is written together in PureBasic, thus EndIF
In the Help, look into the information provided in the section "Console".
Max.
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Henrik.
Nope Start with the:
Print ("Where should i print this")
Put your cursor in front of the P in Print("I need a console") And press F1.
Then read about Openconsole
Then you can look at The "THEN" in the IF statement.
Ups Max beat me to it.
My text was ment as response/AdOn to Jose's post
Not Max's.
Max' saved you the troble of reading the help files, but do it anyway. ;o)
Bedst Regards
Henrik.
Nope Start with the:
Print ("Where should i print this")
Put your cursor in front of the P in Print("I need a console") And press F1.
Then read about Openconsole
Then you can look at The "THEN" in the IF statement.
Ups Max beat me to it.
My text was ment as response/AdOn to Jose's post
Not Max's.
Max' saved you the troble of reading the help files, but do it anyway. ;o)
Bedst Regards
Henrik.