I'm trying to learn how to use MVARs and this is what I have so far:
23rd.h
23rd.gam
so I included it in my script like this
and tried to access it like this
I get compiler error Undefined symbol MVAR_Serg_Left. I read in a previous post that you can use export and import to use map variables, but then someone said that it was not necessary. So has anyone gotten their map variables to work without using exp. imp. ? If so can you help me figure out what I'm doing wrong?
Thanks a lot for your help.
23rd.h
Code:
#ifndef 23rd_H
#define 23rd_H
// Map vars for 23rd.map Map.
//MAP_GLOBAL_VARS:
//GLOBAL NUMBER
// All Map Vars need to start w/ MVAR_
#define MVAR_Serg_Left (0)
#endif // 23rd_H
23rd.gam
Code:
//MAP_GLOBAL_VARS:
MAP_GLOBAL_VARS:
//GLOBAL NUMBER
// All Map Vars need to start w/ MVAR_
MVAR_Serg_Left :=0; // (0)
so I included it in my script like this
Code:
/* Include Files */
#include "..\headers\define.h"
#include "..\headers\23rd.h"
Code:
set_map_var(MVAR_Serg_Left,1);
Thanks a lot for your help.