View unanswered posts | View active topics It is currently Fri Dec 27, 2024 8:52 am



Reply to topic  [ 6 posts ] 
 SetScreenText not working? 
Author Message

Joined: Sat Feb 03, 2007 7:11 pm
Posts: 1496
Reply with quote
Post 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?


Fri Sep 10, 2010 9:55 pm
Profile WWW
User avatar

Joined: Mon Jun 15, 2009 4:02 pm
Posts: 905
Reply with quote
Post Re: SetScreenText not working?
ActivityMan:GetActivity():ReportDeath(self.Team, 9001);

Don't know about the first one.


Fri Sep 10, 2010 9:59 pm
Profile WWW
User avatar

Joined: Tue Jun 12, 2007 11:52 pm
Posts: 13144
Location: Here
Reply with quote
Post 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.


Fri Sep 10, 2010 10:59 pm
Profile
User avatar

Joined: Mon Jun 15, 2009 4:02 pm
Posts: 905
Reply with quote
Post Re: SetScreenText not working?
Out of interest, why is the display duration -50?


Fri Sep 10, 2010 11:02 pm
Profile WWW

Joined: Sat Feb 03, 2007 7:11 pm
Posts: 1496
Reply with quote
Post 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.


Sat Sep 11, 2010 7:44 am
Profile WWW
DRL Developer
DRL Developer
User avatar

Joined: Wed Dec 13, 2006 5:27 am
Posts: 3138
Location: A little south and a lot west of Moscow
Reply with quote
Post Re: SetScreenText not working?
You may want to try Activity:ResetMessageTimer(player) before you send the message.


Sat Sep 11, 2010 8:39 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 6 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.102s | 14 Queries | GZIP : Off ]