Forum

> > CS2D > Scripts > Unknown command '5' (restart 5)
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Unknown command '5' (restart 5)

4 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Unknown command '5' (restart 5)

ead
User Off Offline

Zitieren
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 >

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

DC
Admin Off Offline

Zitieren
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)
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht