I'm trying to make a fight scene in an rpg game but I keep receiving this error when I run the script,"-0 was not expected at this time." im not sure what is wrong with it. I've been searching for about an hour and I cant seem to find something that works. The script for the sceen is as follows,
git clone git@example.com:root/test.git
If there is a typo its because I script on a crappy next book. Its in caps its that way because that's what I prefer. Any help is appreciated. Thanks
答案 0 :(得分:0)
我不认为这个问题属于您已将此范围缩小到的文件范围内。无论您在何处进行计算,请确保您实际使用的是set /a var=other - val
。看看你原来的帖子,到处都不是这样的。
您的错误消息表明其中一个变量包含-0
,您在if语句中使用它。例如num=5 -0
和if %num% equ 0 ...
只是提示未来,请输入一些echo语句来找出问题所在。例如echo reached :attack num is %num% enhealth is %enhealth%