Giter VIP home page Giter VIP logo

Comments (6)

shadez95 avatar shadez95 commented on August 16, 2024

I have changed the value to : [-1,false] so it looks like this...

DEFAULT_PARAM(3,_defaultParam3,[-1,false]);

Now I am getting "_defaultParam3 = any"

from cba_a3.

shadez95 avatar shadez95 commented on August 16, 2024

So I have come to find out that you cannot insert arrays into a macros from reading this post: http://forums.bistudio.com/showthread.php?173775-Preprocessor-macros-using-arguments-limits

It's very odd though because you can insert an array with one element it works, but two will give 'any', and three or more will result in script error.

from cba_a3.

shadez95 avatar shadez95 commented on August 16, 2024

Only way to insert array is to put the array into a variable as @jaynus has done above. I have spent quite awhile thinking of away to try and implement a way so you can insert variables but the easiest way always ends up being to just put the array in a variable.

from cba_a3.

thojkooi avatar thojkooi commented on August 16, 2024

If you want to use this: DEFAULT_PARAM(3,_defaultParam3,[-1,false]);

You will need to make use of the 'ARR_X' macro family:

DEFAULT_PARAM(3,_defaultParam3,[ARR_2(-1,false)]);

from cba_a3.

shadez95 avatar shadez95 commented on August 16, 2024

Well tried your method @Glowbal and now getting 'null'. I give up. I would say just store your array in a local variable and use that local variable. It works! I say just make notes on the wiki and in the "script_macros_common.hpp" file notifying people to store their arrays in variables and to not pass arrays directly into the 'DEFAULT_PARAM' macro.

from cba_a3.

ViperMaul avatar ViperMaul commented on August 16, 2024

@Dixon13, @jaynus
DEFAULT_PARAM is now obsolete in favor of the new BI commands
https://community.bistudio.com/wiki/params
https://community.bistudio.com/wiki/param

from cba_a3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.