moikano22 Posted January 13, 2020 at 10:03 PM Share Posted January 13, 2020 at 10:03 PM 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 More sharing options...
WLN Posted January 14, 2020 at 04:39 AM Share Posted January 14, 2020 at 04:39 AM 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 More sharing options...
WLN Posted January 24, 2020 at 12:10 PM Share Posted January 24, 2020 at 12:10 PM Tópico fechado ja que o autor não teve mais posts Link to comment Share on other sites More sharing options...
Recommended Posts