Hi, i'm trying to have a var initialised right at the instance creation, so all instance script can relate on it, event before OnInstanceInit: and i don't want to use a global var like $var
i tryed strdb_iput( entry->regs.vars, "somevar", 10 );
just after
entry->regs.vars = i64db_alloc(DB_OPT_RELEASE_DATA);
in instance_create() function, but when i put a simple "announce "somevar: " + 'somevar,bc_all;
it just output 0 instead of 10, so i guess it's not that simple
i got it with
i64db_i64put( entry->regs.vars, reference_uid(add_str("'somevar"), 0), 10);
Question
Sting0r
Hi, i'm trying to have a var initialised right at the instance creation, so all instance script can relate on it, event before OnInstanceInit: and i don't want to use a global var like $vari tryedstrdb_iput( entry->regs.vars, "somevar", 10 );
just afterentry->regs.vars = i64db_alloc(DB_OPT_RELEASE_DATA);
in instance_create() function, but when i put a simple "announce "somevar: " + 'somevar,bc_all;it just output 0 instead of 10, so i guess it's not that simple
i got it with
i64db_i64put( entry->regs.vars, reference_uid(add_str("'somevar"), 0), 10);
for sharing purpose!
Link to comment
Share on other sites
0 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.