Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
invalid use of incomplete typedef `Region'

 
Post new topic   Reply to topic Printable version
 View previous topic  Permit + AS3 Post :: Post wierd thing in asss dos prompt  View next topic  
Author Message
gilder
Novice


Age:35
Gender:Gender:Male
Joined: Sep 02 2006
Posts: 35
Location: Finland
Offline

PostPosted: Mon Mar 26, 2007 9:08 am    Post subject: invalid use of incomplete typedef `Region' Reply to topic Reply with quote

Code: Show/Hide

typedef struct MyArenaData
{
   Region (*region)[10];
   int regions;
} MyArenaData;

...

md->Contains(arenadata->region[i], p->position.x, p->position.y);


Every time i use arenadata->region[a], Dev-C++ informs that "invalid use of incomplete typedef `Region' ". Have i declared region variable wrong?
_________________
Hockey Zone
Back to top
View users profile Send private message Add User to Ignore List
numpf
Newbie


Joined: Feb 17 2004
Posts: 24
Offline

PostPosted: Mon Mar 26, 2007 10:39 am    Post subject: Reply to topic Reply with quote

Remove the parens around (*region)

-numpf
Back to top
View users profile Send private message Add User to Ignore List
gilder
Novice


Age:35
Gender:Gender:Male
Joined: Sep 02 2006
Posts: 35
Location: Finland
Offline

PostPosted: Mon Mar 26, 2007 10:43 am    Post subject: Reply to topic Reply with quote

Ok, it works. Thanks for your help. Was afraid that *region[10] means *(region[10]).
Back to top
View users profile Send private message Add User to Ignore List
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> ASSS Questions All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 671 page(s) served in previous 5 minutes.

phpBB Created this page in 0.439652 seconds : 28 queries executed (95.0%): GZIP compression disabled