(adsbygoogle = window.adsbygoogle || []).push({});
Hey i was wondering if anyone could help me fix the connection interruption error i constantly receive when i press two specific menus. When i press 'Clients Menu' or 'All Clients Menu' i receive a Connection Interruption error (in Local) i have used GSC Studio to check for bad syntax, a syntax checker and also a compiler and yet no bad syntax has been found.
Due to this error occurring only in the clients menus im guessing its something to do with the client scripts so maybe someone could have a look at it for me and see what the problem is?
-Script-
self MainMenu("Clients Menu", "Main Menu");
for (p = 0; p < level.players.size; p++) {
player = level.players[p];
self MenuOption("Clients Menu", p, "[" + player.MyAccess + "^7] " + player.name + "", ::SubMenu, "Client Function");
}
self thread MonitorPlayers();
self MainMenu("Client Function", "Clients Menu");
self MenuOption("Client Function", 0, "Verify Player", ::Verify);
self MenuOption("Client Function", 1, "VIP Player", ::doVIP);
self MenuOption("Client Function", 2, "Admin Player", ::doAdmin);
self MenuOption("Client Function", 3, "Co-Host Player", ::doCoHost);
self MenuOption("Client Function", 4, "Unverified Player", ::doUnverif);
self MenuOption("Client Function", 5, "Functions Here", ::Test);
self MainMenu("All Clients", "Main Menu");
self MenuOption("All Clients", 0, "Kill All Players", ::AllPlayersKilled);
self MenuOption("All Clients", 1, "Function Here", ::Test);
self MenuOption("All Clients", 2, "Function Here", ::Test);
self MenuOption("All Clients", 3, "Function Here", ::Test);
self MenuOption("All Clients", 4, "Function Here", ::Test);
}
MonitorPlayers()
{
self endon("disconnect");
for(;
{
for(p = 0;p < level.players.size;p++)
{
player = level.players[p];
self.Menu.System["MenuText"]["Clients Menu"][p] = "[" + player.MyAccess + "^7] " + player.name;
self.Menu.System["MenuFunction"]["Clients Menu"][p] = ::SubMenu;
self.Menu.System["MenuInput"]["Clients Menu"][p] = "Client Function";
wait .01;
}
wait .5;
}
}
-Thanks for you're time