3D Text Label Issue
#1

hi,

i want to attach textlabels to players. There are 2 teams and the players of the 2 team shall have different labels.
But there's just no label appearing over the players head. Why??
Ive also tried this without the gTeam switch, it worked but i want to attach different labels to different teams.
I hope u can help me once again

pawn Код:
new Text3D:ranklabelTEAM1[MAX_PLAYERS];
new Text3D:ranklabelTEAM2[MAX_PLAYERS];

public OnPlayerConnect(playerid)
{

//Labels
ranklabelTEAM1[playerid] = Create3DTextLabel("{1464F4}TEAM1",0xF97804FF,30.0,40.0,50.0,40.0,0);
ranklabelTEAM2[playerid] = Create3DTextLabel("{CC3232}TEAM2",0xF97804FF,30.0,40.0,50.0,40.0,0);

{
switch (gTeam[playerid])
{
case 1: //team1
{
Attach3DTextLabelToPlayer(ranklabelTEAM1[playerid], playerid, 0.0, 0.0, 0.5);
}

case 2: //team2
{
Attach3DTextLabelToPlayer(ranklabelTEAM1[playerid], playerid, 0.0, 0.0, 0.5);
}
}

}

regards...
Reply


Messages In This Thread
3D Text Label Issue - by BlackWolf120 - 15.01.2011, 01:26
Re: 3D Text Label Issue - by BlackWolf120 - 15.01.2011, 01:55
Re: 3D Text Label Issue - by hanzen - 15.01.2011, 02:00
Re: 3D Text Label Issue - by BlackWolf120 - 15.01.2011, 02:03

Forum Jump:


Users browsing this thread: 1 Guest(s)