3dRankTextLabelUpdate
#1

hi,
there are 2 teams and i want to attach 3d text labels with their current ranks to the players.
But i got a missmatch warning!
Whats wrong?

pawn Код:
stock Add3DTextLabelToPlayer(playerid)
{
            //Labels
           
    ranklabelCTU[playerid] = Create3DTextLabel("{1464F4}CTU",0xF97804FF,30.0,40.0,50.0,INVALID_PLAYER_ID,INVALID_VEHICLE_ID,0);
    ranklabelSNAKES[playerid] = Create3DTextLabel("{CC3232}Coral Snake",0xF97804FF,30.0,40.0,50.0,INVALID_PLAYER_ID,INVALID_VEHICLE_ID,0);


    {
    switch (gTeam[playerid])
    {
    case 1: //police
    {
    Attach3DTextLabelToPlayer(ranklabelCTU[playerid], playerid, 0.0, 0.0, 0.5);
    new labelstring[50];
    format(labelstring, sizeof(labelstring), "{1464F4}CTU {20B2AA}%d", RankName[pRank[playerid]]);
    UpdatePlayer3DTextLabelText(playerid, ranklabelCTU[playerid], 0xF97804FF, labelstring);//here
    }

    case 2: //terrorists
    {
    Attach3DTextLabelToPlayer(ranklabelSNAKES[playerid], playerid, 0.0, 0.0, 0.5);
    new labelstring[50];
    format(labelstring, sizeof(labelstring), "{CC3232}Coral Snake {C73F17}%d", RankName[pRank[playerid]]);
    UpdatePlayer3DTextLabelText(playerid, ranklabelSNAKES[playerid], 0xF97804FF, labelstring);//and here
    }
    }

    }
}
Reply


Messages In This Thread
3dRankTextLabelUpdate - by BlackWolf120 - 11.02.2011, 18:42
Re: 3dRankTextLabelUpdate - by BlackWolf120 - 12.02.2011, 11:06
Re: 3dRankTextLabelUpdate - by xxmitsu - 12.02.2011, 11:20
Re: 3dRankTextLabelUpdate - by BlackWolf120 - 12.02.2011, 11:26
Re: 3dRankTextLabelUpdate - by xxmitsu - 12.02.2011, 11:43
Re: 3dRankTextLabelUpdate - by rjjj - 12.02.2011, 11:45
Re: 3dRankTextLabelUpdate - by BlackWolf120 - 12.02.2011, 12:44

Forum Jump:


Users browsing this thread: 1 Guest(s)