3DTextLabel set string ?
#1

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!


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]])
hope i get some help

regards...
Reply


Messages In This Thread
3DTextLabel set string ? - by BlackWolf120 - 04.02.2011, 22:53
Re: 3DTextLabel set string ? - by Fj0rtizFredde - 04.02.2011, 23:03
Re: 3DTextLabel set string ? - by BlackWolf120 - 04.02.2011, 23:17
Re: 3DTextLabel set string ? - by Fj0rtizFredde - 04.02.2011, 23:26
Re: 3DTextLabel set string ? - by BlackWolf120 - 05.02.2011, 00:32

Forum Jump:


Users browsing this thread: 5 Guest(s)