Forum

> > CS2D > Scripts > Unknown command '5' (restart 5)
Forums overviewCS2D overview Scripts overviewLog in to reply

English Unknown command '5' (restart 5)

4 replies
To the start Previous 1 Next To the start

old Unknown command '5' (restart 5)

ead
User Off Offline

Quote
Hello, guys, how are you? I want to use the script "simon_says" but I get this error of restart 5, I am a layman on the lua I need help..

Log

Spoiler >

old Re: Unknown command '5' (restart 5)

DC
Admin Off Offline

Quote
I did a quick check:
Executing
restart
multiple times in a row will cause this problem.

The reason behind this is that the parsing is cancelled when the game finds out that a restart has already been scheduled. The parser ends after restart but then it tries to parse the parameter as a new command which fails because numbers are no commands.

I will fix this issue for the next update.
(sv_restart/sv_restartround/restartround are affected as well and will be fixed as well)

For now the solution to not get this error would be to never try to restart multiple times.

The error message however can also simply be ignored. It doesn't cause any problems (except for the annoying log spam)
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview