I tried adding this in at line 783 but wont compile. Ive tried multiple different things but I cant get it work right.
Code:
else if(InventorySlot(12)->(database.GetItem()->Magic))
{
dmg = 1;
}
Whenever I compile it I get.
Code:
2>..\..\zone\attack.cpp(783): error C2059: syntax error : '('
2>..\..\zone\attack.cpp(784): error C2143: syntax error : missing ';' before '{'
2>..\..\zone\attack.cpp(785): error C2227: left of '->dmg' must point to class/struct/union/generic type
2> type is 'InventorySlot'
2>..\..\zone\attack.cpp(787): error C2181: illegal else without matching if
2>..\..\zone\attack.cpp(797): error C2227: left of '->Damage' must point to class/struct/union/generic type
2> type is ''unknown-type''
I see that dmg should be pointing to something but I am not sure what it should be pointing to.