Just when I think I know everything about cog, this happens. I can't even set an inventory number. I can only change the forcemana bin, but nothing else.
So far I've tried:
ChangeInv(player, 116, 1);
and
SetInv(player, 116, GetInv(player, 116) + 1);
and
int bin=116 local
int change=1 local
SetInv(player, bin, change);
And nothing works. Here's my code:
Everytime I activate the cog in the game it prints out 0.000000. It frustrates me that I can't even change a simple number. Any help, even to say that you have no idea what the problem is, will be greatly appreciated.
So far I've tried:
ChangeInv(player, 116, 1);
and
SetInv(player, 116, GetInv(player, 116) + 1);
and
int bin=116 local
int change=1 local
SetInv(player, bin, change);
And nothing works. Here's my code:
Code:
symbols int player local int bin=116 local int check local flex add=1 local message activated end code activated: player = GetSenderRef(); ChangeInv(player, bin, 1); ChangeInv(player, 116, 1); SetInv(player, 116, GetInv(player, 116) + 1.0); check = GetInv(player, 116); PrintFlex(check); return; end
Everytime I activate the cog in the game it prints out 0.000000. It frustrates me that I can't even change a simple number. Any help, even to say that you have no idea what the problem is, will be greatly appreciated.