# Why is GEngine-\>AddOnScreenDebugMessage printing "0"?

**URL:** <https://forums.unrealengine.com/t/why-is-gengine-addonscreendebugmessage-printing-0/1758>\
**Category:** Community & Industry Discussion\
**Tags:** unreal-engine\
**Created:** [April 3, 2014, 4:54pm UTC](https://forums.unrealengine.com/t/why-is-gengine-addonscreendebugmessage-printing-0/1758 "2014-04-03T16:54:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_cae9bcfa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_cae9bcfa](https://forums.unrealengine.com/u/anonymous_user_cae9bcfa)\
**Post date:** [April 3, 2014, 4:54pm UTC](https://forums.unrealengine.com/t/why-is-gengine-addonscreendebugmessage-printing-0/1758/1 "2014-04-03T16:54:07Z")

</div>

```auto

GEngine->AddOnScreenDebugMessage(-1, 5.f, FColor::Yellow, TEXT("AM I WORKING?"));

```

Anywhere inside my ReceiveTick() function, this prints “0” in blue font only once.

1. shouldn’t it print over and over again on each Tick?
2. does the fact that it’s printing “0” mean that it’s running?

Very confused. This exact code works fine when inside a BeginPlay() function.

---

<div class="post-metadata">

**Author:** ![phoboz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@phoboz](https://forums.unrealengine.com/u/phoboz)\
**Post date:** [April 3, 2014, 5:22pm UTC](https://forums.unrealengine.com/t/why-is-gengine-addonscreendebugmessage-printing-0/1758/2 "2014-04-03T17:22:10Z")

</div>

If you comment out the code from ReceiveTick function does it still show 0?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_cae9bcfa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_cae9bcfa](https://forums.unrealengine.com/u/anonymous_user_cae9bcfa)\
**Post date:** [April 3, 2014, 5:26pm UTC](https://forums.unrealengine.com/t/why-is-gengine-addonscreendebugmessage-printing-0/1758/3 "2014-04-03T17:26:04Z")

</div>

> [@phoboz;11612](#):
>
> If you comment out the code from ReceiveTick function does it still show 0?

No, nothing is printed then.

---

<div class="post-metadata">

**Author:** ![phoboz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@phoboz](https://forums.unrealengine.com/u/phoboz)\
**Post date:** [April 3, 2014, 5:45pm UTC](https://forums.unrealengine.com/t/why-is-gengine-addonscreendebugmessage-printing-0/1758/4 "2014-04-03T17:45:05Z")

</div>

Strange. Try using logs and see if it gets called only once too.

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_cae9bcfa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_cae9bcfa](https://forums.unrealengine.com/u/anonymous_user_cae9bcfa)\
**Post date:** [April 4, 2014, 12:48am UTC](https://forums.unrealengine.com/t/why-is-gengine-addonscreendebugmessage-printing-0/1758/5 "2014-04-04T00:48:08Z")

</div>

Actually…my ReceiveTick function isn’t even running. Not sure why.
