=1 is unexpected

January 10, 2012 at 22:08:44
Specs: Windows XP
After performing this it says "=1 was unexpected"
???

:TRD1
CLS
ECHO Loading Prices...
:LOOP
set VAR19=%random%
if /i %var19% GTR 10 goto loop
if /i %var19% LSS 1 goto loop
:TRD1SL
SET /P VAR18= <DATA\DRINKS\%VAR3%.TXT
SET /P VAR14= <DATA\MONEY\%VAR3%.TXT
ECHO %VAR14%
ECHO 0) Exit
ECHO 1) Buy Drinks %VAR18%
ECHO 2) Sell Drinks %VAR18%
ECHO 3) Sleep
SET /P VAR1=Choice:
IF %VAR1%==0 GOTO MENU
IF %VAR1%==1 GOTO BD
IF %VAR1%==2 GOTO SD
IF %VAR1%==3 GOTO RT1
GOTO TRD1SL


See More: =1 is unexpected

Report •

#1
January 16, 2012 at 08:28:42
There is a problem with these two lines:

SET /P VAR18= <DATA\DRINKS\%VAR3%.TXT
SET /P VAR14= <DATA\MONEY\%VAR3%.TXT

You are trying to set var18 and var14, using var3 which doesn't exist.


Report •
Related Solutions


Ask Question