
Originally Posted by
Ronny786
ZGetGameInterface()->PlayVoiceSound( VOICE_SIXTY_SECOND, 1600);
declare VOICE_SIXTY_SECOND in ZSoundEngine.h
Yeah I tried that... This is what I get:
Code:
\CSCommon\Source\MMatchRule.cpp(142): error C2065: 'VOICE_SIXTY_SECOND' : undeclared identifier
\CSCommon\Source\MMatchRule.cpp(142): error C2227: left of '->PlayVoiceSound' must point to class/struct/union
\CSCommon\Source\MMatchRule.cpp(142): error C3861: 'ZGetGameInterface': identifier not found, even with argument-dependent lookup
I declared this in ZSoundEngine.h:
Code:
#define VOICE_SIXTYSEC_REMAIN "nar/NAR37"
This is the code in MMatchRule.cpp:
Code:
else if ((GetLastTimeLimitAnnounce() > 60) && (nTimeRemain < 60*1000)) {
MCommand* pCmd = MMatchServer::GetInstance()->CreateCommand(MC_MATCH_ANNOUNCE, MUID(0,0));
pCmd->AddParameter(new MCmdParamUInt(0));
sprintf(szMsg, "%s%d", MTOK_ANNOUNCE_PARAMSTR, MERR_TIME_60REMAINING);
pCmd->AddParameter(new MCmdParamStr( szMsg));
ZGetGameInterface()->PlayVoiceSound( VOICE_SIXTYSEC_REMAIN, 1600);
MMatchServer::GetInstance()->RouteToStage(GetStage()->GetUID(), pCmd);
SetLastTimeLimitAnnounce(60);
return false;
And another question, where does the 1600 stand for? I see that after every sound, is it volume or something?