04.02.2011, 22:53
hi,
i ve been trying this for so long and i just dont get it!
Ive created text labels over the head of every player depending on their team.
Well it works but i want that there is also their rank displayed after the team name.
Ive tried it with UpdatePlayer3DTextLabelText but i just dont know how, i always get a missmatch error or warning!
hope i get some help
regards...
i ve been trying this for so long and i just dont get it!
Ive created text labels over the head of every player depending on their team.
Well it works but i want that there is also their rank displayed after the team name.
Ive tried it with UpdatePlayer3DTextLabelText but i just dont know how, i always get a missmatch error or warning!
pawn Код:
ranklabelCTU[playerid] = Create3DTextLabel("{1464F4}CTU",0xF97804FF,30.0,40.0,50.0,40.0,0);
ranklabelSNAKES[playerid] = Create3DTextLabel("{CC3232}Coral Snake",0xF97804FF,30.0,40.0,50.0,40.0,0);
{
switch (gTeam[playerid])
{
case 1: //police
{
Attach3DTextLabelToPlayer(ranklabelCTU[playerid], playerid, 0.0, 0.0, 0.5);
}
case 2: //terrorists
{
Attach3DTextLabelToPlayer(ranklabelSNAKES[playerid], playerid, 0.0, 0.0, 0.5);
}
}
}
// i had to do sth. like this but i get a missmatch warning or sth....
//this is how my ranks are saved:
RankName[pRank[playerid]]
UpdatePlayer3DTextLabelText(playerid, ranklabelCTU[playerid], color, "CTU %d",RankName[pRank[playerid]])
regards...