|
-
Oct 18th, 2002, 04:55 PM
#1
Thread Starter
Fanatic Member
Types Q! Error given...
Hi, Guys.
I have a module with a type called tPlayer.
In this type I have pMagic(1 To 5) As tMagic.
tMagic is another type in another module. In this module I have a Sub: Sub Magic(iMagic As Integer, iPlayer As tPlayer)
When I run my game, I get the error: 'Circular dependencies between modules'
What is that mean? Please Help!
Thank you,
Arie.
-
Oct 18th, 2002, 06:28 PM
#2
Addicted Member
A circular dependency means you have objects referring to each other. What line does the code pop up on?
-
Oct 18th, 2002, 07:18 PM
#3
Post the code for your UDT
-
Oct 18th, 2002, 07:23 PM
#4
Good Ol' Platypus
Just a note, you can't have a UDT that specifies itself in its data. Instead, use a have type, and then have its 'child' as a variable. You can then set that variable to be another 'tMagic'.
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation. 
(Just a heads-up)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|