I want to print a message when I join a room in case a conditional is valid.
For example:Since I had the Training mode as an stage option.Code:if (ZGetGameClient()->GetMatchStageSetting()->GetStageSetting()->bIsTraining) { ZTransMsg(szText, MSG_TRAINING_ON, 1, szTmp); ZChatOutput(szText, ZChat::CMT_SYSTEM, ZChat::CL_STAGE); } else { ZTransMsg(szText, MSG_TRAINING_OFF, 1, szTmp); ZChatOutput(szText, ZChat::CMT_SYSTEM, ZChat::CL_STAGE); }
I don't know if I'm doing it right but I was writting that down "ZChatOutput(szText, ZChat::CMT_SYSTEM, ZChat::CL_STAGE);" on ZGameClient.cpp line 760, it prints the message but always as if it's the default value (false) and if the room master change the option to "ON" and I rejoin it stills printing as if it's false :/. Any idea of how can I get done this?


Reply With Quote![[Source] Printing a message when join a room.](http://ragezone.com/hyper728.png)


