Data Realms Fan Forums
http://45.55.195.193/

SetScreenText not working?
http://45.55.195.193/viewtopic.php?f=73&t=19718
Page 1 of 1

Author:  zalo [ Fri Sep 10, 2010 9:55 pm ]
Post subject:  SetScreenText not working?

Here's my code:
Code:
FrameMan:ClearScreenText(Activity.TEAM_1);
FrameMan:SetScreenText("Team 1 Score: " ..self.Team1Score.. "Team 2 Score: " ..self.Team2Score,Activity.TEAM_1,0,-50,true);


Pretty much just stolen from Klone Soccer, but it doesn't put the message on screen, or give me an error.

Also, I recall there was a way to access the Frag Counter? How would I do that?

Author:  Petethegoat [ Fri Sep 10, 2010 9:59 pm ]
Post subject:  Re: SetScreenText not working?

ActivityMan:GetActivity():ReportDeath(self.Team, 9001);

Don't know about the first one.

Author:  CaveCricket48 [ Fri Sep 10, 2010 10:59 pm ]
Post subject:  Re: SetScreenText not working?

The argument that you keep setting as "Activity.TEAM_1" is the place where you put the player number, not team number.

Author:  Petethegoat [ Fri Sep 10, 2010 11:02 pm ]
Post subject:  Re: SetScreenText not working?

Out of interest, why is the display duration -50?

Author:  zalo [ Sat Sep 11, 2010 7:44 am ]
Post subject:  Re: SetScreenText not working?

Cavecricket I realized this later, and put Activity.PLAYER_1 (and I just tried 0), but to no avail.

Setting objectives works fine though.

It's -50 because it worked in Klone Soccer, and no positive numbers worked either.

Author:  TheLastBanana [ Sat Sep 11, 2010 8:39 am ]
Post subject:  Re: SetScreenText not working?

You may want to try Activity:ResetMessageTimer(player) before you send the message.

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/