Jump to content

highlight system erro


moikano22
 Share

Recommended Posts

Boas pessoal ao compilar a game src deparome com o seguinte erro:

"item.cpp error else without a previous if"

as linhas que vinham para colocar são:

#ifdef __HIGHLIGHT_SYSTEM__
        item->AddToCharacter(this, TItemPos(DRAGON_SOUL_INVENTORY, pos), false);
#else
        item->AddToCharacter(this, TItemPos(DRAGON_SOUL_INVENTORY, pos));
#endif
    else
#ifdef __HIGHLIGHT_SYSTEM__
        item->AddToCharacter(this, TItemPos(INVENTORY, pos), false);
#else
        item->AddToCharacter(this, TItemPos(INVENTORY, pos));
#endif

 

Sei o que quer dizer mas onde meto o IF nesta função?

Grande abraço

 

Link to comment
Share on other sites

penso que o codigo seja este

	if (item->IsDragonSoul())
	{
#ifdef __HIGHLIGHT_SYSTEM__
		item->AddToCharacter(this, TItemPos(DRAGON_SOUL_INVENTORY, pos), false);
#else
		item->AddToCharacter(this, TItemPos(DRAGON_SOUL_INVENTORY, pos));
#endif
	}
	else
#ifdef __HIGHLIGHT_SYSTEM__
		item->AddToCharacter(this, TItemPos(INVENTORY, pos), false);
#else
		item->AddToCharacter(this, TItemPos(INVENTORY, pos));
#endif

 

Link to comment
Share on other sites

  • 2 weeks later...
Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...