SetGlobalInt (character[EGO].activeinv,-1); does not work

Started by TheMagician, Thu 19/06/2003 16:29:56

Previous topic - Next topic

TheMagician

Hi,

I have a line of code in my global script in the "interface"-function:

SetGlobalInt (character[EGO].activeinv,-1);


I need the Active Inventory to be set to "0" as soon as the player clicks on the Inventory-menu button.

AGS does not crash while converting the script, so I think it's coded properly. However - in game - it seems to be ignored.

Any suggestions, please?

scotch

just do

character[EGO].activeinv=-1;

that's not a global int :)  Global ints just have numbers.

TheMagician

I LOOOOOVE this forum!

An answer in 5 minutes ... tried it ... and everything works perfect!

Thank you, scotch

Hurra!

SMF spam blocked by CleanTalk