14.03.2015, 13:30
i create text3d for guild name in head player
but when my exist guild and join new guild
old Text3D don't delete , and new Text3D does add
Can fix this problem ? thankyou
Код:
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]);
old Text3D don't delete , and new Text3D does add
Can fix this problem ? thankyou