Re: another problem

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

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