Server Help

ASSS Questions - misc as3 stuff

Cheese - Thu Jan 15, 2009 7:29 pm
Post subject: misc as3 stuff
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...
Dr Brain - Thu Jan 15, 2009 9:12 pm
Post subject:
You probably forgot to include the header files where those things are defined.

Make sure periodicMessage has the correct parameters and return type.
Cheese - Thu Jan 15, 2009 11:56 pm
Post subject:
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...?
Dr Brain - Fri Jan 16, 2009 6:25 am
Post subject:
Look it up...
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group