为什么会这样:
set /a num = %random% %% 5 + 1
if %num% == 1 set map=cs_assault
if %num% == 2 set map=cs_italy
if %num% == 3 set map=cs_office
if %num% == 4 set map=de_aztec
if %num% == 5 set map=de_bank
srcds -game csgo -port 27016 -console +game_type 0 +game_mode 0 +mapgroup mg_casual +map %map%
但这不是吗?
set /a num = %random% %% 5 + 1
if %num% == 1 set map = cs_assault
if %num% == 2 set map = cs_italy
if %num% == 3 set map = cs_office
if %num% == 4 set map = de_aztec
if %num% == 5 set map = de_bank
srcds -game csgo -port 27016 -console +game_type 0 +game_mode 0 +mapgroup mg_casual +map %map%
我似乎根本无法解决这个问题。