[HELP] Winner Team get the Scores
#1

How can I make the winner team gets the scores?

My Code:
Код:
if(TEAM_RED_SCORE > TEAM_BLUE_SCORE){
	    GameTextForAll("~r~ Team RED WIN }~n +1 Score",3000,5);
	    SetPlayerScore(TEAM_RED,GetPlayerScore(TEAM_RED)+1);
	}
	if(TEAM_RED_SCORE < TEAM_BLUE_SCORE) {
	    GameTextForAll("~b~Team BLUE WIN! }~n +1 Score",3000,5);
	    SetPlayerScore(TEAM_BLUE,GetPlayerScore(TEAM_BLUE)+1);
	}
    if(TEAM_RED_SCORE == TEAM_BLUE_SCORE) {
		GameTextForAll("~p~ No Winners! ",3000,5);
	}
But it Crashs.


Who can help me?
Reply
#2

Try:
pawn Код:
if(TEAM_RED_SCORE > TEAM_BLUE_SCORE)
{
    GameTextForAll("~r~ Team RED WIN ~n +1 Score",3000,5);
    SetPlayerScore(TEAM_RED,GetPlayerScore(TEAM_RED)+1);
}

if(TEAM_RED_SCORE < TEAM_BLUE_SCORE)
{
    GameTextForAll("~b~Team BLUE WIN! ~n +1 Score",3000,5);
    SetPlayerScore(TEAM_BLUE,GetPlayerScore(TEAM_BLUE)+1);
}

if(TEAM_RED_SCORE == TEAM_BLUE_SCORE)
{
    GameTextForAll("~p~ No Winners! ",3000,5);
}
Reply
#3

Its crashing because of this line:
pawn Код:
"~r~ Team RED WIN ~n +1 Score"
You are missing a "~" in "~n"

Try this:
pawn Код:
"~r~ Team RED WIN ~n~ +1 Score"
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)