Hi everyone, I just have a quick question whenever i try and create an if statement in a panel such as:
Code:
panel game_panel
{
bmap= main_panel;
flags = VISIBLE, OVERLAY;
digits (58, 560, 5, digi_font, 1, health);
if(weapon1.visible == on)
{
digits (620, 560, 5, digi_font, 1, current_ammo);
}
}
I always get a bunch of errors when i do that. I guess you cant do if statements inside panels.