Autor Beitrag
chriss1988
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 389

windows xp prof,home,windows98
delphi5
BeitragVerfasst: Di 25.04.06 16:02 
hi

hab da ein Problem.
Ich habe ein Kleines Spiel ist nichts besonderes aber wenn Player1 und Player2 nicht die zahl erraten hat soll eine fehlermeldun kommen dies macht er nicht sondern bringt den Fehler Opperator Semikolon fehlt?
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
if (player1zahl and Player2zahl not zahl) then
   begin
     edit1.clear;
     edit2.clear;
     edit3.clear;
     edit1.setfocus;
     showmessage('Kein Gewinner');
     end;
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Di 25.04.06 16:04 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
if not (player1zahl=zahl) and not(Player2zahl=zahl) then
begin
     edit1.clear;
     edit2.clear;
     edit3.clear;
     edit1.setfocus;
     showmessage('Kein Gewinner');
end;

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
nullplan001
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 212

Win 2000 Professional, Debian Linux 4.0 (Etch,Stable)
Pascal (FreePascal 2.0.2, TurboPascal 7.0), C(++) (G++/GCC 3.4.2 + MinGW), Java (JDK 1.5.0_07), PHP (PHP 5.1.4)
BeitragVerfasst: Di 25.04.06 16:18 
Und nebenbei gibt es im Deutschen so wunderbare Sachen wie Interpunktion, die einem das Lesen enorm erleichtern. Früher (also ganz früher) gab es mal eine Schriftform namens Scriptura Continua. Der Trend geht zwar wieder dahin, aber ich bezweifle ernsthaft, dasseinemsoeinGeschreibselwiedashierwasbringt.
Tschö,
nullplan

_________________
Ich fahr' nicht selber, weil ich festgestellt habe: ich fahre zu emotional. Bin 180 gefahren wo 30 erlaubt war... -- Jürgen von der Lippe
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Di 25.04.06 16:19 
user profile iconnullplan001 hat folgendes geschrieben:
Und nebenbei gibt es im Deutschen so wunderbare Sachen wie Interpunktion, die einem das Lesen enorm erleichtern. Früher (also ganz früher) gab es mal eine Schriftform namens Scriptura Continua. Der Trend geht zwar wieder dahin, aber ich bezweifle ernsthaft, dasseinemsoeinGeschreibselwiedashierwasbringt.
Tschö,
nullplan

Das ist in diesem Topic aber noch erträglich ;) (habe schon schlimmeres gesehen)

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot