Comments (6)
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.
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.
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.
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.
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.
@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)
- cba
- PerFrameHandler Framework Issue: Stuck Handler Prevents Execution of Subsequent Handlers HOT 8
- CBA_fnc_compatibleItems Error HOT 6
- Frame related functions dont work in Eden Editor
- Latest CBA version does not honor white space in the CBA settings Configuration File for Task Force Arrowhead Radio (BETA) HOT 2
- Some CBA Settings fail to import HOT 5
- Old armaholic link HOT 1
- Camera not working in Keyframe animation HOT 5
- Toggling 2D and 3D on optics doesn't consistently work unless you hit both applicable keybinds at once. HOT 5
- Third Person View HOT 1
- Vehicle Parameter in GetIn Extended Eventhandler has wrong value HOT 2
- 3.16.1.231025 Bugs in /settings/fnc_parse.sqf and /common/fnc_addPlayerAction.sqf HOT 2
- Zeus not working. Zeus Game Master and Spawn AI modules, when placed in Eden Editor, don't work in Single Player HOT 1
- Problem when running arma with cba Addon "cba_ jam _spe" requires addon "WW2_spe_core_c_zzz_lastloaded_c" HOT 6
- My friend cannot connect to a server because Arma 3 says CBA is not detected even though it is installed HOT 8
- the addon config not working HOT 3
- Server doesn't read cba_settings.sqf file in userconfig HOT 4
- CBA_fnc_compatibleItems throws undefined variable errors when called with a single parameter HOT 1
- Модуль HC
- function to convert numbers to boolean and vice versa (0 and 1) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cba_a3.