Post: Bad Syntax
12-27-2014, 06:09 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Hey guys, i am trying to create a GSC menu, but my menu gave me a Syntax Error, and i don't know how to fix it.
This is the code:

//MonitorPlayers() shows up as the Syntax Error

MonitorPlayers()
{
self endon("disconnect");
for(;Winky Winky
{
for(p = 0;p < level.players.size;p++)
{
player = level.players[p];
self.Menu.System["MenuTexte"]["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 0.1;
}
wait 0.5;
}
}
(adsbygoogle = window.adsbygoogle || []).push({});
12-27-2014, 08:04 PM #2
I think it´s alright but test this
You must look that the Menu Fucntions Names the same like that ( SubMenu must called Submenu )
monitorPlayerMenu()
{
self endon("menu_exit");
for( ;; )
{
level waittill( "connected", player );
foreach( player in level.players )
{
if(player getAccessLevel() > 0)
{
player updatePlayersMenu();
if( player getCurrentMenu() == "clients" )
player changeMenu( "clients" );
}
}
}
}
12-27-2014, 08:11 PM #3
Originally posted by MCabCon View Post
I think it´s alright but test this
You must look that the Menu Fucntions Names the same like that ( SubMenu must called Submenu )
monitorPlayerMenu()
{
self endon("menu_exit");
for( ;; )
{
level waittill( "connected", player );
foreach( player in level.players )
{
if(player getAccessLevel() > 0)
{
player updatePlayersMenu();
if( player getCurrentMenu() == "clients" )
player changeMenu( "clients" );
}
}
}
}


Still doesn't work
But thanks for the help
08-05-2015, 09:51 PM #4
itsSorrow
In my man cave
Its usually a lone above it or below it.. and here Idk if this will help

    
MonitorPlayers()
{
self endon("disconnect");
for(;Winky Winky
{
for(p = 0;p < level.players.size;p++)
{
player = level.players[p];
self.Menu.System["MenuTexte"]["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 0.1;
}
wait 0.5;
}
}

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo