Re: another problem

new topic     » goto parent     » topic index » view thread      » older message » newer message

Tom,

Glad you found a nice solution:)

BTW, sprint *doesn't* require 3 arguments, so I'm guessing that however you
used it might have generated a message that made it *seem* so?  I think I've
noticed that sometimes the error messages  say things that aren't exactly
true.

Dan

----- Original Message -----
From: "Tom Harris" <tom.harris at blueyonder.co.uk>
To: "EUforum" <EUforum at topica.com>
Sent: Sunday, November 25, 2001 1:23 AM
Subject: Re: another problem



wahoo!  I've fixed it.

what I needed was: printf(file_num, "%15s, %5d\n", {name, score})

Tom Harris.
----- Original Message -----
From: "Dan Moyer" <DANIELMOYER at prodigy.net>
To: "EUforum" <EUforum at topica.com>
Sent: Sunday, November 25, 2001 7:30 AM
Subject: Re: another problem



Tom,

Try using  "sprint(WhateverYourScoreVariableIs)",  wherever you were putting
"WhateverYourScoreVariableIs" into the score file.  You'll have to "include
misc.e" to use it.

ie,

include misc.e

puts(FileNumberForScoreFile, VariableWithPersonsName & "  " &
sprint(ThatPersonsScoreVariable))


Dan Moyer

----- Original Message -----
From: "Tom Harris" <tom.harris at blueyonder.co.uk>
To: "EUforum" <EUforum at topica.com>
Sent: Saturday, November 24, 2001 4: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 prints...

<whatever the person put as their name>

...instead of a number.  There's probably a good reason whyt this happens
but being new to Euphoria I haven't spotted it.

Thanks!

Tom.

P.S:  I have attatched the program again, to make it work creat a blank file
called score.txt

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu