ItsMods

Full Version: Name Team
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
There is a problem with the output text names for command.
doInfo() - is a problem here.

Code:
showTeams()
{

    level.infotext = NewHudElem();
    level.infotext.alignX = "BOTTOMLEFT";
    level.infotext.alignY = "BOTTOM";
    level.infotext.horzAlign = "BOTTOMLEFT";
    level.infotext.vertAlign = "BOTTOM";
    level.infotext.y = 30;
    level.infotext.x = 5;
    level.infotext.foreground = true;
    level.infotext.fontScale = 1.2;
    level.infotext.font = "default";
    level.infotext.alpha = 1;
    level.infotext.color = ( 1.0, 1.0, 1.0 );

    wait 0.20;
}

Code:
doInfo()
{
self endon("disconnect");

for(i = 10; i >= 0; i -= 1)
{

//**************************************************\\
ttm = ??????(the standard name of the team "axis");
ttm2 = ??????(the standard name of the team "Allies");
//**************************************************\\

level.infotext setText(ttm2 + ": ^4" + level.aliveCount["axis"] + " ^1| " + ttm + ": ^4" + level.aliveCount["allies"]);

if(i == 0)
{
i = 10;
}

wait 1;
}
}

in file _team.gsc
Code:
setDvar("g_TeamName_Allies", getTeamShortName( "allies" ));
setDvar("g_TeamName_Axis", getTeamShortName( "axis" ));
Code:
ttm = "??????(the standard name of the team "axis")";
ttm2 = "??????(the standard name of the team "Allies")";

Try that instead, what was the error?