Post: Dohearts Error
10-29-2015, 02:11 AM #1
xPlayer420
Bounty hunter
(adsbygoogle = window.adsbygoogle || []).push({}); So when i use this doheart's

    

Toggle_DoHeartsBitches()
{
if(level.doheart==1)
{
self iPrintln("doHeart ^2ON");
self thread doheart();
self thread gedh();
level.doheart=0;
}
else
{
self iPrintln("doHeart ^1OFF");
level notify("endDH");
level.SA destroy();
level.doheart=1;
}
}
gedh()
{
level endon("endDH");
level waittill("game_ended");
level.SA destroy();
wait 0.001;
level notify("endDH");
}
doHeart()
{
level endon("endDH");
level.SA destroy();
level.SA=createServerFontString("hudbig",2.1);
level.SA setPoint( "TOPLEFT","TOPLEFT",0,30 + 100 );
level.result += 1;
level.SA setText( level.hostname+" <3" );
level notify("textset");
level.SA.hideWhenInMenu=1;
level.SA.sort = 2;
for(;Winky Winky
{
level.SA ChangeFontScaleOverTime( 0.4 );
level.SA.fontScale = 2.0;
level.SA FadeOverTime( 0.3 );
level.SA.glowAlpha=1;
level.SA.glowColor =((randomint(255)/255),(randomint(255)/255),(randomint(255)/255));
level.SA SetPulseFX(40,2000,600);
wait 0.4;
level.SA ChangeFontScaleOverTime( 0.4 );
level.SA.fontScale = 2.3;
level.SA FadeOverTime( 0.3 );
level.SA.glowAlpha=1;
level.SA.glowColor =((randomint(255)/255),(randomint(255)/255),(randomint(255)/255));
level.SA SetPulseFX(40,2000,600);
wait 0.4;
}
}



I get this

You must login or register to view this content.

then if someone opens the menu and does stuff it changes the text like this

You must login or register to view this content.

Can anybody help me figure this out?
(adsbygoogle = window.adsbygoogle || []).push({});
10-29-2015, 04:05 AM #2
KrazyKandy
I am error
use different DoHeart
10-29-2015, 04:31 AM #3
Z0neyDanza
Climbing up the ladder
I actually have this same problem, lol.
10-30-2015, 12:11 AM #4
xPlayer420
Bounty hunter
i tried multiple Dohearts and all the same outcome
10-30-2015, 03:21 AM #5
HiddenHour
I defeated!
Make a check so that if the doHeart's text doesn't equal a string, then it sets it to the string.
10-30-2015, 03:21 AM #6
itsSorrow
In my man cave
Originally posted by TheHiddenHour View Post
Make a check so that if the doHeart's text doesn't equal a string, then it sets it to the string.


or or or or or or overflow the hearts script?
10-30-2015, 03:24 AM #7
HiddenHour
I defeated!
Originally posted by GentleSlugger View Post
or or or or or or overflow the hearts script?


Nah. Make something like
    if(element.text != level.doHeartText)
element setText(level.doHeartText);

in a loop so that it only sets when the text isn't what it's supposed to be. That's how I use mine and it works fine Tustin

The following 2 users say thank you to HiddenHour for this useful post:

itsSorrow, xPlayer420
10-30-2015, 02:58 PM #8
xPlayer420
Bounty hunter
Originally posted by TheHiddenHour View Post
Nah. Make something like
    if(element.text != level.doHeartText)
element setText(level.doHeartText);

in a loop so that it only sets when the text isn't what it's supposed to be. That's how I use mine and it works fine Tustin


How would i put this?
10-30-2015, 03:10 PM #9
HiddenHour
I defeated!
Originally posted by xPlayer420 View Post
How would i put this?


That's for you to figure out. Change the variables to yours and just add it to a loop in your doHeart function.
10-30-2015, 03:18 PM #10
xPlayer420
Bounty hunter
ahh oki :P

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo