Whats wrong with CreatePlayer3DTextLabel?
#6

pawn Код:
new PlayerText3D:WantedLabel[MAX_PLAYERS][MAX_PLAYERS];
new LabelCreated[MAX_PLAYERS][MAX_PLAYERS];
pawn Код:
for(new i=0; i<MAX_PLAYERS; i++)
{
    if(IsACop(i))
    {
        for(new suspect=0; suspect<MAX_PLAYERS; suspect++)
        {
            if(LabelCreated[i][suspect] == 0)
            {
                if(WantedLevel[suspect] >= 1)
                {
                    format(text,sizeof(text),"Wanteds: %d\nGrund: %s\nZeuge: %s",WantedLevel[suspect],reason,turner);
                    WantedLabel[i][suspect] = CreatePlayer3DTextLabel(i,text,COLOR_LIGHTRED,0,0,0,25.0,suspect,INVALID_VEHICLE_ID,0);
                    LabelCreated[i][suspect] = 1;
                }
            }
            else
            {
                format(text,sizeof(text),"Wanteds: %d\nGrund: %s\nZeuge: %s",WantedLevel[suspect],reason,turner);
                UpdatePlayer3DTextLabelText(i, WantedLabel[i][suspect], COLOR_LIGHTRED, text);
            }
        }
    }
}
Reply


Messages In This Thread
Whats wrong with CreatePlayer3DTextLabel? - by imagician - 12.03.2011, 10:46
Re: Whats wrong with CreatePlayer3DTextLabel? - by Stigg - 12.03.2011, 10:57
Re: Whats wrong with CreatePlayer3DTextLabel? - by Sasino97 - 12.03.2011, 11:33
Re: Whats wrong with CreatePlayer3DTextLabel? - by imagician - 12.03.2011, 13:18
Re: Whats wrong with CreatePlayer3DTextLabel? - by imagician - 12.03.2011, 16:13
Re: Whats wrong with CreatePlayer3DTextLabel? - by MadeMan - 12.03.2011, 17:00
Re : Whats wrong with CreatePlayer3DTextLabel? - by Dear - 18.03.2011, 00:38

Forum Jump:


Users browsing this thread: 1 Guest(s)