15.11.2008, 17:54
Heres the onplayerdeath where the mismatches come from
And this at my other defines and new's and stuff
Did I do something wrong?
pawn Код:
//OnPlayerDeath
if(gTeam[playerid] == TEAM_COR)
{
teamScore[TEAM_COR]++;
if(teamScore[TEAM_COR] >= 50)
{
GameTextForAll("~w~Corleones Won",5000,3);
SetTimer("EndGM", 10000,0);
}
}
else if(gTeam[playerid] == TEAM_TAT)
{
teamScore[TEAM_TAT]++;
if(teamScore[TEAM_TAT] >= 50)
{
GameTextForAll("~y~Tattaglias Won",5000,3);
SetTimer("EndGM", 10000,0);
}
}
else if(gTeam[playerid] == TEAM_CUN)
{
teamScore[TEAM_CUN]++;
if(teamScore[TEAM_CUN] >= 50)
{
GameTextForAll("~b~Cuneos Won",5000,3);
SetTimer("EndGM", 10000,0);
}
}
}
pawn Код:
new teamScore[pTeams];