Collie
Veteran
- Messages
- 9
- Reaction score
- 12
- Points
- 788
So I'm trying to add a script that prints to the screen a message saying that you have to press a button to either accept 100,000 points or decline them, but no matter what I do I can't get the game to print my message. The button pressing works just fine, but here's the script:
function points()
{
wait(15.0);
iprintlnbold( "Press and hold [{+actionslot 3}] to accept 100,000 points" );
wait(1.0);
iprintlnbold( "Press and hold [{+actionslot 4}] to decline 100,000 points" );
wait(1.0);
for(;; ) //<-- no space there normally, this board just converts it to a winky face otherwise
{
if(self actionslotthreebuttonpressed())
{
self zm_score::add_to_player_score(49750);
return;
}
else if(self actionslotfourbuttonpressed())
{
return;
}
wait(0.2);
}
I have the wait at the start because the script is supposed to start when the player connects, so I need to give it enough time for the screen to fade it. But it still doesn't print the message, even if I make it wait long after you can move around and see.
function points()
{
wait(15.0);
iprintlnbold( "Press and hold [{+actionslot 3}] to accept 100,000 points" );
wait(1.0);
iprintlnbold( "Press and hold [{+actionslot 4}] to decline 100,000 points" );
wait(1.0);
for(;; ) //<-- no space there normally, this board just converts it to a winky face otherwise
{
if(self actionslotthreebuttonpressed())
{
self zm_score::add_to_player_score(49750);
return;
}
else if(self actionslotfourbuttonpressed())
{
return;
}
wait(0.2);
}
I have the wait at the start because the script is supposed to start when the player connects, so I need to give it enough time for the screen to fade it. But it still doesn't print the message, even if I make it wait long after you can move around and see.