Re: another problem
- Posted by Tom Harris <tom.harris at blueyonder.co.uk> Nov 24, 2001
- 373 views
This is a multi-part message in MIME format. ------=_NextPart_000_003B_01C17515.E6CDE220 charset="iso-8859-1" arggghhhhhh! Why isn't it working?!?!? ----- Original Message ----- From: Tom Harris To: EUforum Sent: Saturday, November 24, 2001 6:25 PM Subject: Re: another problem ok, what about now, is it there? ----- Original Message ----- From: euman at bellsouth.net To: EUforum Sent: Saturday, November 24, 2001 6:10 PM Subject: Re: another problem Your file attachments are NOT comeing thru!!! If the file is less than 50k perhaps you should try again. Euman ----- Original Message ----- From: Tom Harris To: EUforum Sent: Saturday, November 24, 2001 7:01 AM Subject: another problem Now I want to add a score. Currently the score (a) should go up by one every time you answer a question correctly but when I look at the file score .txt it ------=_NextPart_000_002C_01C17515.710376E0 Content-Type: application/octet-stream; name="tomsquiz.ex" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="tomsquiz.ex" --TOM'S QUIZ is made by Tom Harris of HOCUS POCUS --HOCUS POCUS gAmEs include get.e include graphics.e include file.e include machine.e integer i integer a integer q sequence name sequence highscore a =3D 0 bk_color(WHITE) text_color(BLUE) allow_break(1) --The questions begin clear_screen() puts(1, "What is the name of the current royal family?\n") puts(1, "a. Tudor b.Windsor c.Stuart d.Elizabeth\n") i =3D wait_key() if i !=3D 'b' and i !=3D 'B' then if i =3D 'q' then clear_screen() puts(1, "Thankyou for playing!/n") abort(0) end if puts(1, "Sorry, that's the wrong answer!\n") abort(0) end if =20 clear_screen() a =3D a+1 -- here we go again! puts(1, "In what year did England win the world cup?\n") puts(1, "a. 1996 b.1986 c.1976 d.1966\n") i =3D wait_key() if i !=3D 'd' and i !=3D 'D' then if i =3D 'q' then clear_screen() puts(1, "Thankyou for playing!/n") abort(0) end if puts(1, "Sorry, that's the wrong answer!\n") abort(0) end if clear_screen() a =3D a+1 puts(1, "When did Steve Redgrave win his first gold medal?\n") puts(1, "a. 2000 b. 1992 c. 1984 d. 1996\n") i =3D wait_key() if i !=3D 'c' and i !=3D 'C' then if i =3D 'q' then clear_screen() puts(1, "Thankyou for playing!/n") abort(0) end if puts(1, "Sorry, that's the wrong answer!\n") abort(0) end if =20 clear_screen() a =3D a+1 puts(1, "How many times has cyclist Miguel Indurain won the 'Tour de = France'\n") puts(1, "a. 2 b. 3 c. 4 d. 5\n") i =3D wait_key() if i !=3D 'D' and i !=3D 'd' then if i =3D 'q' then clear_screen() puts(1, "Thankyou for playing!/n") abort(0) end if puts(1, "Sorry, that's the wrong answer!\n") abort(0) end if =20 clear_screen()> =20 a =3D a+1 integer file_num constant ERROR =3D 2 file_num =3D open("score.txt", "u") if file_num =3D -1 then puts(ERROR, "couldn't open highscore\n") end if name =3D prompt_string("Please enter your name :") printf(file_num, "%s", {name}) printf(file_num, "%s", {a}) clear_screen() puts(1, "You have been added to the highscore list.\n") abort(0) ------=_NextPart_000_002C_01C17515.710376E0-- ------=_NextPart_000_003B_01C17515.E6CDE220 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: 8bit <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=iso-8859-1"> <META content="MSHTML 5.50.4134.600" name=GENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=#ffffff> <DIV><FONT face=Arial size=2>arggghhhhhh! Why isn't it working?!?!?</FONT></DIV> <BLOCKQUOTE dir=ltr style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"> <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV> <DIV style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> <A title=tom.harris at blueyonder.co.uk href="mailto:tom.harris at blueyonder.co.uk">Tom Harris</A> </DIV> <DIV style="FONT: 10pt arial"><B>To:</B> <A title=EUforum at topica.com href="mailto:EUforum at topica.com">EUforum</A> </DIV> <DIV style="FONT: 10pt arial"><B>Sent:</B> Saturday, November 24, 2001 6:25 PM</DIV> <DIV style="FONT: 10pt arial"><B>Subject:</B> Re: another problem</DIV> <DIV><FONT face=Arial size=2>ok, what about now, is it there?</FONT></DIV> <BLOCKQUOTE style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"> <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV> <DIV style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> <A title=euman at bellsouth.net href="mailto:euman at bellsouth.net">euman at bellsouth.net</A> </DIV> <DIV style="FONT: 10pt arial"><B>To:</B> <A title=EUforum at topica.com href="mailto:EUforum at topica.com">EUforum</A> </DIV> <DIV style="FONT: 10pt arial"><B>Sent:</B> Saturday, November 24, 2001 6:10 PM</DIV> <DIV style="FONT: 10pt arial"><B>Subject:</B> Re: another problem</DIV> <DIV><FONT face=Arial size=2>Your file attachments are NOT comeing thru!!!</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>If the file is less than 50k </FONT><FONT face=Arial size=2>perhaps you should try again.</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>Euman</FONT> </DIV> <BLOCKQUOTE style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"> <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV> <DIV style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> <A title=tom.harris at blueyonder.co.uk href="mailto:tom.harris at blueyonder.co.uk">Tom Harris</A> </DIV> <DIV style="FONT: 10pt arial"><B>To:</B> <A title=EUforum at topica.com href="mailto:EUforum at topica.com">EUforum</A> </DIV> <DIV style="FONT: 10pt arial"><B>Sent:</B> Saturday, November 24, 2001 7:01 AM</DIV> <DIV style="FONT: 10pt arial"><B>Subject:</B> another problem</DIV> <DIV><FONT face=Arial size=2>Now I want to add a score. Currently the score (a) should go up by one every time you answer a question correctly but when I look at the file score .txt it ------=_NextPart_000_002C_01C17515.710376E0 Content-Type: application/octet-stream; name="tomsquiz.ex" Content-Transfer-Encoding: