Scoreboard
#1

I know this has to (hopefully..at least) be an easy fix.

I have my scoreboard all set up so everything compiles perfect.
The only issue is that I can't get it to actually APPEAR on screen.

Something tells me it has to do with the string..thing >_>' I never
really understand those, I keep reading the wiki, but I couldn't figure
it out.

Anyways, here's the code of the string, n' stuffs.

Код:
public OnPlayerDeath(playerid,killerid,reason)
{
  if(gTeam[playerid]==TEAM_SURVIVORS)
  {
    if(gTeam[playerid]==TEAM_SURVIVORS)GroveScore--; //otherwise punishment
    else BallasScore++;
  }else{
    if(gTeam[playerid]==TEAM_ZOMBIES)BallasScore--; //otherwise punishment
    else GroveScore++;
  }
  new tmpstr[50]; //Accommodate for string size
  format(tmpstr,sizeof(tmpstr),"Grove: %d  Ballas:%d",GroveScore,BallasScore);
  TextDrawSetString(Text:Textdraw2,tmpstr);
  return 1;
}
<_< The (Text:Textdraw2,tmpstr);
I feel like that might become a problem later, but lets focus on the whole "making it appear on the screen" deal.



Thank you. ^^
Reply


Messages In This Thread
Scoreboard - by BJaxx - 13.11.2010, 03:08
Re: Scoreboard - by Scenario - 13.11.2010, 03:19
Re: Scoreboard - by BJaxx - 13.11.2010, 03:23
Re: Scoreboard - by Scenario - 13.11.2010, 03:26
Re: Scoreboard - by BJaxx - 13.11.2010, 04:00
Re: Scoreboard - by Lorenc_ - 13.11.2010, 04:03
Re: Scoreboard - by BJaxx - 13.11.2010, 04:06
Re: Scoreboard - by gr56 - 13.11.2010, 05:40
Re: Scoreboard - by BJaxx - 13.11.2010, 06:52

Forum Jump:


Users browsing this thread: 1 Guest(s)