Originally posted by YouViolateMe
You guys are all wrong :p
Unknown functions and bad syntax cause you to hard freeze on map loading.
Infinite loops hard freeze the game with no connection interrupted (at least on PC it doesn't).
The reason you are getting connection interrupted is because the game is trying to access a variable or array/2-dimensional array/array value that doesn't exist.
Let's say I have an undefined level.strings array. If I try and access the first value (or any undefined value) of that undefined array I will get connection interrupted.
For mod menus, most of the time people misspell their menu names which causes the game to look inside the arrays for the misspelled menu name, and since it can't find that array key, it throws a connection interrupted error and freezes. Or since on console there is no developer mode, it could be because of bad coding and the game throwing too many errors at once. If you test on PC you'll know what I mean. That's why I always say, if you can't run it in developer mode and get no errors on screen, then you're not coding it correctly.