tag mismatch
new Label;
Label = LabelText(playerid); /*Line 1891*/Attach3DTextLabelToPlayer(Label, playerid, 0.0, 0.0, 0.7);
stock LabelText(playerid)
{
/*============================Gold VIP==================================*/
if(AccountInfo[playerid][AdminLevel] == 5 && AccountInfo[playerid][VIPlevel] == 3)
{
Create3DTextLabel(""RED"Owner & "Gold"Gold "PURPLE"VIP *",0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
}
if(AccountInfo[playerid][AdminLevel] == 4 && AccountInfo[playerid][VIPlevel] == 3)
{
Create3DTextLabel(""RED"Head Admin & "Gold"Gold "PURPLE"VIP *",0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
}
if(AccountInfo[playerid][AdminLevel] == 3 && AccountInfo[playerid][VIPlevel] == 3)
{
Create3DTextLabel(""RED"Administrator & "Gold"Gold "PURPLE"VIP *",0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
}
if(AccountInfo[playerid][AdminLevel] == 2 && AccountInfo[playerid][VIPlevel] == 3)
{
Create3DTextLabel(""RED"Moderator & "Gold"Gold "PURPLE"VIP *",0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
}
if(AccountInfo[playerid][AdminLevel] == 1 && AccountInfo[playerid][VIPlevel] == 3)
{
Create3DTextLabel(""RED"Trail Moderator & "Gold"Gold "PURPLE"VIP *",0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
}
/*============================Silver VIP==================================*/
if(AccountInfo[playerid][AdminLevel] == 5 && AccountInfo[playerid][VIPlevel] == 3)
{
Create3DTextLabel(""RED"Owner & "Silver"Silver "PURPLE"VIP *",0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
}
if(AccountInfo[playerid][AdminLevel] == 4 && AccountInfo[playerid][VIPlevel] == 3)
{
Create3DTextLabel(""RED"Head Admin & "Silver"Silver "PURPLE"VIP *",0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
}
if(AccountInfo[playerid][AdminLevel] == 3 && AccountInfo[playerid][VIPlevel] == 3)
{
Create3DTextLabel(""RED"Administrator & "Silver"Silver "PURPLE"VIP *",0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
}
if(AccountInfo[playerid][AdminLevel] == 2 && AccountInfo[playerid][VIPlevel] == 3)
{
Create3DTextLabel(""RED"Moderator & "Silver"Silver "PURPLE"VIP *",0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
}
if(AccountInfo[playerid][AdminLevel] == 1 && AccountInfo[playerid][VIPlevel] == 3)
{
Create3DTextLabel(""RED"Trail Moderator & "Silver"Silver "PURPLE"VIP *",0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
}
/*============================Bronze VIP==================================*/
if(AccountInfo[playerid][AdminLevel] == 5 && AccountInfo[playerid][VIPlevel] == 3)
{
Create3DTextLabel(""RED"Owner & "Bronze"Bronze "PURPLE"VIP *",0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
}
if(AccountInfo[playerid][AdminLevel] == 4 && AccountInfo[playerid][VIPlevel] == 3)
{
Create3DTextLabel(""RED"Head Admin & "Bronze"Bronze "PURPLE"VIP *",0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
}
if(AccountInfo[playerid][AdminLevel] == 3 && AccountInfo[playerid][VIPlevel] == 3)
{
Create3DTextLabel(""RED"Administrator & "Bronze"Bronze "PURPLE"VIP *",0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
}
if(AccountInfo[playerid][AdminLevel] == 2 && AccountInfo[playerid][VIPlevel] == 3)
{
Create3DTextLabel(""RED"Moderator & "Bronze"Bronze "PURPLE"VIP *",0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
}
if(AccountInfo[playerid][AdminLevel] == 1 && AccountInfo[playerid][VIPlevel] == 3)
{
Create3DTextLabel(""RED"Trail Moderator & "Bronze"Bronze "PURPLE"VIP *",0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
}
/*============================Just VIP==================================*/
if(AccountInfo[playerid][VIPlevel] == 1)
{
Create3DTextLabel(""Bronze"Bronze "PURPLE"VIP *",0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
}
if(AccountInfo[playerid][VIPlevel] == 2)
{
Create3DTextLabel(""Silver"Silver "PURPLE"VIP *",0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
}
if(AccountInfo[playerid][VIPlevel] == 3)
{
Create3DTextLabel(""Gold"Gold "PURPLE"VIP *",0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
}
return 1;
}
new Text3D:Label;
stock LabelText(playerid)
{
/*============================Gold VIP==================================*/
if(AccountInfo[playerid][AdminLevel] == 5 && AccountInfo[playerid][VIPlevel] == 3)
{
return Create3DTextLabel(""RED"Owner & "Gold"Gold "PURPLE"VIP *",0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
}
Have your function return "Create3DTextLabel(...)" and remove return 1;.
pawn Код:
|
stock LabelText(playerid, &Text3D: Label)
{
/*============================Gold VIP==================================*/
if(AccountInfo[playerid][AdminLevel] == 5 && AccountInfo[playerid][VIPlevel] == 3)
{
Label = Create3DTextLabel("test",0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
}
if(AccountInfo[playerid][AdminLevel] == 4 && AccountInfo[playerid][VIPlevel] == 3)
{
Label = Create3DTextLabel("test",0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
}
//...and so on
}
new Text3D: label;
LabelText(playerid, label);//the function will make "label" equal to a new 3DText if one is made
stock Text3D:LabelText(playerid)
{
/*============================Gold VIP==================================*/
if(AccountInfo[playerid][AdminLevel] == 5 && AccountInfo[playerid][VIPlevel] == 3)
{
return Create3DTextLabel(""RED"Owner & "Gold"Gold "PURPLE"VIP *",0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
}
}
new Text3D:gMyLabel = LabelText(playerid);