Jump to content
Sign in to follow this  
Billy EatWorld

Any way to pass a string as the value for a mission variable?

Recommended Posts

class Params
{
    class test
    {
        title = "Test";
        texts[] = {"One","Two","Three"};
        values[] = {"1","2","3"};
        default = "1";
    };
};

Like this?

"test" call BIS_fnc_getParamValue; just returns 0.


Thanks guys!

Share this post


Link to post
Share on other sites

Hi,

"test" call BIS_fnc_getParamValue returns 0, because the default value you assigned to it is a string and it has to be a number. Remove the quotes from values and default and it should work fine.

 

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  

×