I've created an account on this website because i was having a problem with the game I'm writing...
A friend of mine told me of this website, he said if i had any question a could post it here.. I dunno his username but if you want i can ask him...
Anyways...
Here is my question:
I've been make this game in batch and i came across some weird errors, i figured out some of them except one..
Here is a Paint made image:
The variable "CRED" equals 1000
The variables "ROXDIS1" "ROXDIS2" "ROXDIS3" "ROXDIS4" "ROXDIS5" "ROXDIS6" all equal 0
So i think that is all...
If you need more information or a bigger image just ask!
Weird Syntax Error
Moderator: DosItHelp
Re: Weird Syntax Error
If you run with ECHO ON you should be able to determine the line with the syntax error yourself.
In this case, the line
is to blame. You have your test condition, but you don't specify a command to execute if it evaluates to TRUE.
When posting on this site you should paste code as text, not images. You can use the Code button at the top of the submission editor to paste in the tags needed to specify a code block.
Dave Benham
In this case, the line
Code: Select all
if %CRED% LSS 200
When posting on this site you should paste code as text, not images. You can use the Code button at the top of the submission editor to paste in the tags needed to specify a code block.
Dave Benham
-
- Posts: 104
- Joined: 28 Jul 2011 17:32
Re: Weird Syntax Error
dbenham wrote:If you run with ECHO ON you should be able to determine the line with the syntax error yourself.
In this case, the lineis to blame. You have your test condition, but you don't specify a command to execute if it evaluates to TRUE.Code: Select all
if %CRED% LSS 200
When posting on this site you should paste code as text, not images. You can use the Code button at the top of the submission editor to paste in the tags needed to specify a code block.
Dave Benham
Oh!
How couldn't i notice that?!
Ok, I'll post the code next time!
I'm gonna test it, and...
Done, it worked!!
Thx for the "run echo on ON" tip, it's realy helped!
(If you want to try the game just PM me , I'm stealing some ideas from "Uplink" a "Trace Hacker" games hehehe... )
Thx for the reply!!
And again..
Thx for the reply