[Circle] Unfamiliar Error for Me

From: Nicholas S. Wourms (Prospero@bbs.x-net.net)
Date: 11/01/96


Fellow Coders,
        I am just leaning how to code, so I am unsure what is causing the
followin error.  I have include the lines where the error is located.
THE ERROR:
make ../bin/circle
gcc -c -g -O   act.item.c
act.item.c: In function `do_drink':
act.item.c:737: subscripted value is neither array nor pointer
act.item.c:738: subscripted value is neither array nor pointer
act.item.c:757: subscripted value is neither array nor pointer
act.item.c:760: subscripted value is neither array nor pointer
act.item.c:763: subscripted value is neither array nor pointer
*** Error code 1

Stop.
*** Error code 1

Stop.

THE CODE LINES:
(737-738)  
  if (drink_aff[GET_OBJ_VAL(temp, 2)][DRUNK] > 0)   
    amount = (25 - GET_COND(ch, THIRST)) / drink_aff[GET_OBJ_VAL(temp,
2)][DRUNK];
(757)
 (int) ((int) drink_aff[GET_OBJ_VAL(temp, 2)][DRUNK] * amount) / 4);
(760)
 (int) ((int) drink_aff[GET_OBJ_VAL(temp, 2)][FULL] * amount) / 4);
(763)
 (int) ((int) drink_aff[GET_OBJ_VAL(temp, 2)][THIRST] * amount) / 4);

Any help would be greatly apperciate.  Thanks in advance!
Nicholas Wourms 8^)

+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |
+-----------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/18/00 PST