About Store Forum Documentation Contact



Post Reply 
SLOTS extern ?
Author Message
Eri_94 Offline
Member

Post: #1
SLOTS extern ?
Hi,
I would like to do in player.cpp something like this:
Code:
if(slot[SLOT_ARM_R].valid() && slot[SLOT_ARM_R]().type2==WEAPON_PISTOL)

I think that I need to extern SLOTS enum:
(main.h)
Code:
extern enum SLOTS;

but... it isn't working, there are still errors:
Code:
error C2065: 'slot' : undeclared identifier
11-06-2009 10:31 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: SLOTS extern ?
you need to take care of slot and not SLOTS
11-06-2009 01:24 PM
Find all posts by this user Quote this message in a reply
Eri_94 Offline
Member

Post: #3
RE: SLOTS extern ?
Thanks smile smile
11-07-2009 01:23 PM
Find all posts by this user Quote this message in a reply
Post Reply