Post: Connection Interrupted Error
10-29-2014, 12:36 AM #1
ZnZx
Bounty hunter
(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? Smile



-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(;Winky Winky
{
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 Smile
(adsbygoogle = window.adsbygoogle || []).push({});
12-14-2015, 02:56 PM #2
The connection interruped error is caused when an array, arrayvalue, or varible that doesn't exist is called upon
12-14-2015, 02:57 PM #3
I'm having the same problem in my menu that I'm creating, anytime I die I get the connection interruption error :/ been trying to debug for days

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo