as monkey said, you are missing some braces, did you add them already?
Code: ags
function cEgo_UseInv()
{
if(player.ActiveInventory == iCleanBoots) {
player.LoseInventory(iCleanBoots);
cEgo.ChangeView(3);
}
}