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
misc as3 stuff

 
Post new topic   Reply to topic Printable version
 View previous topic  NAAP Setup Post :: Post I_RELDB with Python  View next topic  
Author Message
Cheese
Wow Cheese is so helpful!


Joined: Mar 18 2007
Posts: 1017
Offline

PostPosted: Thu Jan 15, 2009 7:29 pm    Post subject: misc as3 stuff Reply to topic Reply with quote

3 questions:

ive gotten everything else working, but
Code: Show/Hide

        mm->RegCallback(CB_CROWNCHANGE,CrownChange,ALLARENAS);
      mm->RegCallback(CB_KOTH_START,KothStart,ALLARENAS);
      mm->RegCallback(CB_KOTH_END,KothEnd,ALLARENAS);
      mm->RegCallback(CB_KOTH_PLAYER_WIN,KothPlayerWin,ALLARENAS);
      mm->RegCallback(CB_KOTH_PLAYER_WIN_END,KothPlayerWinEnd,ALLARENAS);
      mm->RegCallback(CB_PLAYERDAMAGE,PlayerDamage,ALLARENAS);

all give undeclared compile errors...

also, in using
Code: Show/Hide

local void PlayerDamage(Arena *arena, Player *p, struct S2CWatchDamage *damage, int count)

i need to know how to use the S2CWatchDamage struct, and i get a
Code: Show/Hide

[Warning] "struct S2CWatchDamage" declared inside parameter list
[Warning] its scope is only this definition or declaration, which is probably not what you want

error

and in using
Code: Show/Hide

ml->SetTimer(periodicMessage,6000,12000,NULL,NULL);

i get a pointer type error
Code: Show/Hide

[Warning] passing arg 1 of pointer to function from incompatible pointer type

just wondering about this one...


so far ive gotten just about every callback working, and a whole bunch of other stuff...
ill release the mod/code later...
_________________
SSC Distension Owner
SSCU Trench Wars Developer
Back to top
View users profile Send private message Add User to Ignore List Visit posters website AIM Address
Dr Brain
Flip-flopping like a wind surfer


Age:39
Gender:Gender:Male
Joined: Dec 01 2002
Posts: 3502
Location: Hyperspace
Offline

PostPosted: Thu Jan 15, 2009 9:12 pm    Post subject: Reply to topic Reply with quote

You probably forgot to include the header files where those things are defined.

Make sure periodicMessage has the correct parameters and return type.
_________________
Hyperspace Owner

Smong> so long as 99% deaths feel lame it will always be hyperspace to me
Back to top
View users profile Send private message Add User to Ignore List AIM Address Yahoo Messenger MSN Messenger
Cheese
Wow Cheese is so helpful!


Joined: Mar 18 2007
Posts: 1017
Offline

PostPosted: Thu Jan 15, 2009 11:56 pm    Post subject: Reply to topic Reply with quote

so you have to include other things besides asss.h...?
what would i include for those?
what ARE the correct parameters/return type for periodicMessage...?
Back to top
View users profile Send private message Add User to Ignore List Visit posters website AIM Address
Dr Brain
Flip-flopping like a wind surfer


Age:39
Gender:Gender:Male
Joined: Dec 01 2002
Posts: 3502
Location: Hyperspace
Offline

PostPosted: Fri Jan 16, 2009 6:25 am    Post subject: Reply to topic Reply with quote

Look it up...
Back to top
View users profile Send private message Add User to Ignore List AIM Address Yahoo Messenger MSN Messenger
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: 35 page(s) served in previous 5 minutes.

phpBB Created this page in 0.472547 seconds : 29 queries executed (94.7%): GZIP compression disabled