Author Topic: String not setting?  (Read 2196 times)

Okay, I have a GUI, and when you open it (by a command) it's supposed to check certain variables set from other scripts. Ex...in another script, it has $eggs  = 1; at the top. In my GUI's opening function, it checks if $eggs == 1 and does stuff if it is or is not. Well, it works fine, but when you run a dedicated server it doesn't seem to be set! (It's set in a different file though, but it should be enabled)

If you need an example, it's my AloGUI. Any help? This is completely confusing me.

More information please :)
Like spefically what doesn't work.

Well, it works fine, but when you run a dedicated server it doesn't seem to be set! (Server sets something, the client's GUI should check whats what, but it always seems to be 0)

Put a special dummy variable in your script file:
$MyEggDummy = true;

Then open up your GUI file, and add something like this at the bottom (didn't test it):
if(!$MyEggDummy){
  exec("lol/hax/egg.cs");
}
//do stuff

I tried doing that and it exec's your files not the servers, thus giving incorrect readings. :|