Post: HintMessage String Overflow
10-25-2015, 06:31 PM #1
BullyWiiPlaza
Climbing up the ladder
(adsbygoogle = window.adsbygoogle || []).push({}); It seems like the function
    maps\mp\gametypes\_hud_message::hintMessage(text)
causes the game to get a String overflow really quickly if executed too often. How do I fix this? I want to display various messages to all players. I'm using You must login or register to view this content. which is already built into the menu base You must login or register to view this content..

    displayAdvertisementMessages()
{
self endon("disconnect");

delayBetweenMessages = 15;

while(1)
{
hintMessage("Blabla");
wait delayBetweenMessages;

hintMessage("Blablablabla");
wait delayBetweenMessages;

// ...
}
}

hintMessage(text)
{
self thread maps\mp\gametypes\_hud_message::hintMessage(text);
}
(adsbygoogle = window.adsbygoogle || []).push({});
10-25-2015, 06:50 PM #2
Procyon
Gym leader
Use a iPrintln, iPrintlnbold or regular Create Text function.
10-25-2015, 08:40 PM #3
BullyWiiPlaza
Climbing up the ladder
Originally posted by Procyon View Post
Use a iPrintln, iPrintlnbold or regular Create Text function.

True, I by myself tried to use iPrintlnBold's in the meantime and that works much better and doesn't overflow.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo