Blockland Forums > Modification Help
need help with %arg 1
<< < (4/6) > >>
Headcrab Zombie:
Another problem I just saw - popdialog closes a GUI, not opens
Honorable:
yea i figured that. BUT i fixed it. AND another error. it is that it only opens it for the game host. How can it open for other people.
Pah1023:
You can do this.
function gameConnection::openGUI(%this, %arg1, %cl)
{
 if(%arg1 $= "")
 {
  return;
 }
commandToClient('OpenGui', %arg1);
}
(This in the clients gui thing)
function clientCommandOpenGUI(%arg1)
{
 canvas.pushDialog(%arg1);
}
Im pretty sure this works.
Honorable:
That didn't work either.
Headcrab Zombie:
Everyone else needs to have a clientside add-on with the clientCmd in it.
Navigation
Message Index
Next page
Previous page

Go to full version