Jump to content
Sign in to follow this  
alleycat

global variable fail

Recommended Posts

Having an issue with a global variable in MP.

And by global I mean something declared in the init.sqf like so:

g_variable = 5;

Then I tested this on a dedicated server where a script called on the server that uses the variable. Now for the messed up creepy part:

It works on a dedicated, however when playing on a local server all scripts using the variable break and report an unknown variable.

What the hell?

Share this post


Link to post
Share on other sites

one line of code isnt going to help us answer this.

You must be using a switch somewhere like

! hasinterface

IsDedicated

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×