Post: notifyMessage() Not Printing Text
01-09-2015, 08:52 AM #1
MeatSMurderer
Do a barrel roll!
(adsbygoogle = window.adsbygoogle || []).push({}); 20 views and nobody even suggested anything...ah well, I got it working anyway...thanks for nada.


Okay, so I am trying to push messages using notifyMessage() but nothing comes up.

I've created a function called displayMessage:
    displayMessage(messagetitletext, messagenotifytext, messageglowcolor)
{ notifyData = spawnstruct();
if(isdefined(messagetitletext))
notifyData.titleText = messagetitletext;
if(isdefined(messagenotifytext))
notifyData.notifyText = messagenotifytext;
if(isdefined(messageglowcolor))
notifyData.glowColor = messageglowcolor;
notifyData.duration = 5;
notifyData.font = "objective";
self thread maps/mp/gametypes/_hud_message::notifyMessage(notifyData);
self iprintln(messagetitletext);
self iprintln(messagenotifytext);
self iprintln(messageglowcolor);
}

Then I'm calling it for example with:
    
self displayMessage("My Message Here", "My Other Message", (0, 0, 1));


The problem is that while the iprintln's are printing my strings into the killfeed the notifyMessage doesn't come up at all.
(adsbygoogle = window.adsbygoogle || []).push({});

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo