the gui nameif %arg is nothing, then you need to state what %arg is,post the whole script plz
registerOutputEvent(gameConnection,OpenGUI,"string 100 100");function gameConnection::GUIOpener(%this, %arg1, %client){ echo(%arg1); <------- if(%arg1 $= "") { return; } canvas.popdialog(%arg1);}
registerOutputEvent(gameConnection, OpenGUI, string 100 100);function gameConnection::GUIOpener(%this, %arg1, %client){ if(%arg1 $= "") { return; } canvas.popdialog(%arg1);}
Oh! That almost fixed it. Just 1 problem. Syntax errors. or Error.registerOutputEvent("gameConnection", "OpenGUI", "string 100 100");function gameConnection::GUIOpener(%this, %arg1, %client){ if(%arg1 $= "") { return; } canvas.popdialog(%arg1);}
Your event is named OpenGUI while the method is named GUIOpenerYou're also trying to call a clientside function through the server.Anytime anyone in the server triggers the event, it will open the GUI on the host's screen.And finally, using both %this and %client in that function is redundant.