hello help me with Team Score Textdraw
#2

I take it TEAM_ZOMBIE and TEAM_HUMAN are just defines? If they are, you're not actually able to do what you're doing. Defines define a specific term to a value. What you want is a variable which you can change the values to:
pawn Код:
new TEAM_HUMAN_SCORE, TEAM_ZOMBIE_SCORE;
Then instead, do this:
pawn Код:
SetPlayerScore(killerid,GetPlayerScore(killerid)+1);
    if(GetPlayerTeam(killerid) == 0)
    {
        TEAM_ZOMBIE_SCORE++; //Sets team1score
        new newtext[41];
        format(newtext, sizeof(newtext), "ZOMBIE: %d",  TEAM_ZOMBIE_SCORE);
        TextDrawSetString(Textdraw, newtext);
    }
    if(GetPlayerTeam(killerid) == 1)
    {
        TEAM_HUMAN_SCORE++; //Sets team2score
        new newtext[41];
        format(newtext, sizeof(newtext), "HUMAN: %d", TEAM_HUMAN_SCORE);
        TextDrawSetString(Textdraw1, newtext);
    }
Reply


Messages In This Thread
hello help me with Team Score Textdraw - by Xoomer - 31.07.2013, 02:52
Re: hello help me with Team Score Textdraw - by [HiC]TheKiller - 31.07.2013, 05:54
Re: hello help me with Team Score Textdraw - by dEcooR - 31.07.2013, 06:52

Forum Jump:


Users browsing this thread: 1 Guest(s)