Does anyone have the code that counts the number of players inside the maze? I know there's one on the forum, but over time it gives the bug "FUCNCTION. LUA STACK OVERFLOW in the code lines" the V3ctor one that is only used in the after enter functions and before_leave seems promising because it only works when someone enters or leaves, unlike map_copy_run which updates all the time, but it doesn't work
resource/abandonedcity\ctrl.lua:48: )' expected near º'
SetPortalName("<darkswamp>", string.format("%d player(s) inside", GetMapActivePlayer(GetChaMapCopу(role)) - 1))