Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help Reset Score
#1
have problem withe code

doResetScore()
{
self endon ( "disconnect" );
//self endon ( "death" );
self notifyOnPlayerCommand( "reset", "+resetscore" );
for(;;)
{
self waittill ( "reset" );
self.pers["score"] = 0;
self.pers["kills"] = 0;
self.pers["assists"] = 0;
self.pers["deaths"] = 0;
self.pers["suicides"] = 0;
self.score = 0;
self.kills = 0;
self.assists = 0;
self.deaths = 0;
self.suicides = 0;
self sayall("^2Reset Score!"); break;
wait 1;
}
}

i have double text.The text should be displayed once

(11-07-2013, 15:41)Low_BoB Wrote: have problem withe code

doResetScore()
{
self endon ( "disconnect" );
//self endon ( "death" );
self notifyOnPlayerCommand( "reset", "+resetscore" );
for(;;)
{
self waittill ( "reset" );
self.pers["score"] = 0;
self.pers["kills"] = 0;
self.pers["assists"] = 0;
self.pers["deaths"] = 0;
self.pers["suicides"] = 0;
self.score = 0;
self.kills = 0;
self.assists = 0;
self.deaths = 0;
self.suicides = 0;
self sayall("^2Reset Score!"); break;
wait 1;
}
}

and i add this code to onPlayerSpawned()

i have double text.The text should be displayed once
Reply

#2
Do you mean 'sayall' ?
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply

#3
Did you thread it twice?
Do not take life too seriously. You will never get out of it alive.
[Image: UGPjFJa.jpg]
Reply

#4
Code:
self notifyOnPlayerCommand( "reset", "+resetscore" );
self waittill ( "reset" );
self.pers["score"] = 0;
self.pers["kills"] = 0;
self.pers["assists"] = 0;
self.pers["deaths"] = 0;
self.pers["suicides"] = 0;
self.score = 0;
self.kills = 0;
self.assists = 0;
self.deaths = 0;
self.suicides = 0;
self sayall("^2Reset Score!");

You can remove the for in what you have since you are breaking it Cool
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  [Release] Reset Player Score CheGuevara 3 3,132 04-15-2013, 21:31
Last Post: banz
  Help C# Tutorial on how to reset a string DidUknowiPwn 7 4,940 10-11-2012, 15:04
Last Post: DidUknowiPwn
  change team names & score board color raminr63 11 11,630 09-28-2012, 09:22
Last Post: zxz0O0
  Reset killtreaks for round sd MILOR123 0 1,698 07-04-2012, 18:23
Last Post: MILOR123
  reset the rep of all people in the top 10 rep? Pozzuh 9 4,534 05-01-2012, 20:07
Last Post: Arteq
  how to change score limit in snd in mw3? father00 0 2,120 03-13-2012, 22:02
Last Post: father00
Smile [tool question] reset _sikh 2 2,351 02-25-2012, 18:03
Last Post: _sikh
  Help kill score raminr63 6 3,928 01-29-2012, 08:23
Last Post: raminr63
  i want to reset my rank hussi 7 5,252 11-30-2011, 20:35
Last Post: antdub
  Help How to reset level in mw3? guliwer 2 5,789 11-23-2011, 20:44
Last Post: Arteq

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.