The code that has been posted could never have been working.
- There are several brackets missing, that alone should stop this script from getting compiled.
- The switch has a break before any statement, if that even compiles it will do nothing.
- local.player = $player[local.i]; does not need the semicolon
- local.player = $player[local.i] does not work, because in that code local.i is NIL
- local.player = $player[NIL] does not work, because in is a invalid index of the $player entity array
- local.player is NIL
- local.player playsound racmsg11 will not work because NIL can't use playsound, only entities can
- for testing I recommend you use $player instead (works as long as there is only 1 player on the server),
until you figured everything else out
- I am not quite sure, but I think switch has no advantage to if, when there is but a single statement to check
- I have never seen this before, but maybe it is correct, I can't tell: local.master = spawn ScriptMaster
Well, that are the things that I noticed so far without knowing how the rest of your script looks like.
BTW, what kind of crash does the server have ?
What happens to the server after the crash ?
Last edited by chrissstrahl; January 12th, 2020 at 06:56 AM.