12.03.2011, 10:46
Hello Dear members.
I have an ad created for the cops to CreatePlayer3DTextLabel, which is not displayed.
Can you help me?
Cheers, Unkn0wnX.
PS: Sorry for my bad English, i'm German.
Here is my Code:
new PlayerText3D:WantedLabel[MAX_PLAYERS];
&
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsACop(i))
{
for(new suspect=0; suspect<MAX_PLAYERS; suspect++)
{
if(LabelCreated[suspect] == 0)
{
if(WantedLevel[suspect] >= 1)
{
GetPlayerPos(suspect,wX,wY,wZ);
format(text,sizeof(text),"Wanteds: %d\nGrund: %s\nZeuge: %s",WantedLevel[suspect],reason,turner);
WantedLabel[i] = CreatePlayer3DTextLabel(i,text,COLOR_LIGHTRED,wX,w Y,wZ,25.0,suspect,INVALID_VEHICLE_ID,0);
LabelCreated[suspect] = 1;
}
}
else
{
format(text,sizeof(text),"Wanteds: %d\nGrund: %s\nZeuge: %s",WantedLevel[suspect],reason,turner);
UpdatePlayer3DTextLabelText(i, WantedLabel[i], COLOR_LIGHTRED, text);
}
}
}
}
I have an ad created for the cops to CreatePlayer3DTextLabel, which is not displayed.
Can you help me?
Cheers, Unkn0wnX.
PS: Sorry for my bad English, i'm German.
Here is my Code:
new PlayerText3D:WantedLabel[MAX_PLAYERS];
&
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsACop(i))
{
for(new suspect=0; suspect<MAX_PLAYERS; suspect++)
{
if(LabelCreated[suspect] == 0)
{
if(WantedLevel[suspect] >= 1)
{
GetPlayerPos(suspect,wX,wY,wZ);
format(text,sizeof(text),"Wanteds: %d\nGrund: %s\nZeuge: %s",WantedLevel[suspect],reason,turner);
WantedLabel[i] = CreatePlayer3DTextLabel(i,text,COLOR_LIGHTRED,wX,w Y,wZ,25.0,suspect,INVALID_VEHICLE_ID,0);
LabelCreated[suspect] = 1;
}
}
else
{
format(text,sizeof(text),"Wanteds: %d\nGrund: %s\nZeuge: %s",WantedLevel[suspect],reason,turner);
UpdatePlayer3DTextLabelText(i, WantedLabel[i], COLOR_LIGHTRED, text);
}
}
}
}