Text3D don't remove :(
#1

i create text3d for guild name in head player

Код:
new Text3D:Gang3d3[MAX_PLAYERS];

public onplayerupdate(playerid)
{
	if(PlayerInfo[playerid][pMember] == 1 ||PlayerInfo[playerid][pLeader] == 1)
		{
		    
		    format(sStr, sizeof(sStr),"Dell");
	            Update3DTextLabelText(Gang3d3[playerid], 0xFFFFFF, "");
    		    Gang3d3[playerid] = Create3DTextLabel( sStr,COLOR_WHITE, 30.0,40.0,50.0,50.0,0);
	            Attach3DTextLabelToPlayer( Gang3d3[playerid],playerid, 0.0, 0.0, 0.3);

                   }
          if(PlayerInfo[playerid][pMember] == 2||PlayerInfo[playerid][pLeader] == 2)
		 {
		    
                     format(sStr, sizeof(sStr),"Acer");
		     Update3DTextLabelText(Gang3d3[playerid], 0x0000F9FF, "");
    		     Gang3d3[playerid] = Create3DTextLabel( sStr, 0x0000F9FF, 30.0,40.0,50.0,50.0,0);
		     Attach3DTextLabelToPlayer(Gang3d3[playerid],playerid, 0.0, 0.0, 0.3);
		}       
}
public OnPlayerConnect(playerid)
{
	Delete3DTextLabel(Gang3d3[playerid]);
}
public OnPlayerDisconnect(playerid,reason)
{
        Delete3DTextLabel(Gang3d3[playerid]);
}

/// and on my exist guild 
        Delete3DTextLabel(Gang3d3[playerid]);
but when my exist guild and join new guild
old Text3D don't delete , and new Text3D does add


Can fix this problem ? thankyou


Reply


Messages In This Thread
Text3D don't remove :( - by haloweenll - 14.03.2015, 13:30
Re: Text3D don't remove :( - by CalvinC - 14.03.2015, 13:32
Re: Text3D don't remove :( - by haloweenll - 14.03.2015, 13:46
Re: Text3D don't remove :( - by haloweenll - 14.03.2015, 15:45
Re: Text3D don't remove :( - by CalvinC - 14.03.2015, 15:48
Re: Text3D don't remove :( - by haloweenll - 14.03.2015, 16:01
Re: Text3D don't remove :( - by Vince - 14.03.2015, 16:02
Re: Text3D don't remove :( - by haloweenll - 14.03.2015, 18:25
Re: Text3D don't remove :( - by haloweenll - 15.03.2015, 16:54
Re: Text3D don't remove :( - by haloweenll - 16.03.2015, 14:57

Forum Jump:


Users browsing this thread: 1 Guest(s)