For 2 days I've been playing around with a message system to replace
the death message and gun/ammo pickup messages in my mod. I think I
got it set up, with messages queuing to be displayed and such, but one
problem has arisen...
The game crashes when I make a message for it. I mean the
server-client messages.
I have dealt with this system twice before for radar and a timer but
this one defies me.
I have the message registered
gmsgPerfectDarkMessage = REG_USER_MSG("PerfectDarkMessage", -1);
i have an extern of it in the gamerules so I can call it there, i have
it declared as a global int in player.cpp I have everything my old
messages have.
Then I go to trigger the message. 3 messages so I can test the queuing out
MESSAGE_BEGIN(MSG_ALL, gmsgPerfectDarkMessage);
                WRITE_STRING("Dont fly strongbad");
        MESSAGE_END();
        MESSAGE_BEGIN(MSG_ALL, gmsgPerfectDarkMessage);
                WRITE_STRING("I worry about you");
        MESSAGE_END();
        MESSAGE_BEGIN(MSG_ALL, gmsgPerfectDarkMessage);
                WRITE_STRING("i can see the strings");
        MESSAGE_END();

It then, because it cares, tells me
"fatal eror"
"tried to create a message with bogus message type (0)"
Yeah, thanks HL, I Wubb J00 too.

This only occures when i fire off a message, because i tired
commenting the 'dont fly strongbad' stuff. So, any ideas on why I am
createing a message with a bogus message type?

--

**********************
Draco
Coder for Perfect Dark
http://perfectdark.game-mod.net

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to