Search found 3 matches

by KrunkJuice101
20 Sep 2014 08:28
Forum: DOS Batch Forum
Topic: Help with score system
Replies: 7
Views: 5795

Re: Help with score system

Its still not working. I believe the score on the variable is updating, but it wont update on the top of the screen. It stays at 0 but when I echo it after the score it shows the 10 points were added. Another issue with is is the line to check if the number you guessed is too high or low. Sometimes ...
by KrunkJuice101
20 Sep 2014 00:15
Forum: DOS Batch Forum
Topic: Help with score system
Replies: 7
Views: 5795

Re: Help with score system

foxidrive wrote:Change this

Code: Select all

if "%guess%" EQU "%number%" set /a score=score=%score%+10

to this

Code: Select all

if "%guess%" EQU "%number%" set /a score=score+10


didnt work unfortunately
by KrunkJuice101
19 Sep 2014 20:34
Forum: DOS Batch Forum
Topic: Help with score system
Replies: 7
Views: 5795

Help with score system

The score wont update when the answer is correct and the points are added @echo off title Guess the number! color 04 :start cls set /a number=(%random% %%15)+1 echo ------------------------------------------------------------------------------- echo GUESS THE NUMBER echo ----------------------------...