Delete3DTextLabel
#4

Quote:
Originally Posted by Buzzbomb
Посмотреть сообщение
Delete3DTextLabel(Airwolves);

Might Remove it For all Players..
Thanks!

but of some reason it doesnt removes the label, and it shall removes for all players.

I have made it like this.
pawn Код:
public OnPlayerSpawn(playerid)
{
    new Text3D:Rookie = Create3DTextLabel("Rookie", 0xFF0000FF, 30.0, 40.0, 50.0, 40.0, 0);
    new Text3D:Airwolves = Create3DTextLabel("Airwolves", 0xAFAFAFAA, 30.0, 40.0, 50.0, 40.0, 0);
    new Text3D:Bluefoxes = Create3DTextLabel("Bluefoxes", 0x33CCFFAA, 30.0, 40.0, 50.0, 40.0, 0);
    new Text3D:Thunderbirds = Create3DTextLabel("Thunderbirds", 0xFFFF00AA, 30.0, 40.0, 50.0, 40.0, 0);

Attach3DTextLabelToPlayer(Rookie, playerid, 0.0, 0.0, 0.3);
Attach3DTextLabelToPlayer(Airwolves, playerid, 0.0, 0.0, 0.3);
Attach3DTextLabelToPlayer(Bluefoxes, playerid, 0.0, 0.0, 0.3);
Attach3DTextLabelToPlayer(Thunderbirds, playerid, 0.0, 0.0, 0.3);

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if (dialogid == 755)
    {
        new Text3D:Airwolves;
        new Text3D:Bluefoxes;
        new Text3D:Thunderbirds;
        if (response)
        {
            new string[120];
            format(string,sizeof(string),"You have resigned from %s", Organization[PlayerOrg[playerid]][Name]);
            SendClientMessage(playerid, COLOR_YELLOW, string);
            format(string,sizeof(string),"**%s has resigned from %s", PlayerName(playerid), Organization[PlayerOrg[playerid]][Name]);
            SendClientMessageToAllEx(playerid, COLOR_GREY, string);
            Delete3DTextLabel(Text3D:Airwolves);
            Delete3DTextLabel(Text3D:Bluefoxes);
            Delete3DTextLabel(Text3D:Thunderbirds);
           
            if (IsLeader(playerid))
            {
            new none[24];
            format(none,sizeof(none),"None");
            Organization[PlayerOrg[playerid]][Leader] = none;
            }
            ResetPlayerOrg(playerid);
            SavePlayerOrgInfo(playerid);
            SetPlayerTeam(playerid, 0);
            SetPlayerColor(playerid, COLOR_RED);
            SpawnPlayer(playerid);
            PlayerRank[playerid] = "None";
            SendClientMessageToAllEx(playerid, COLOR_GREY, string);
            Delete3DTextLabel(Text3D:Airwolves);
            Delete3DTextLabel(Text3D:Bluefoxes);
            Delete3DTextLabel(Text3D:Thunderbirds);
        }
I guess new "Text3D:Airwolves;" on "OnDialogResponse" is completely wrong bc it doesnt call these lines?
pawn Код:
new Text3D:Rookie = Create3DTextLabel("Rookie", 0xFF0000FF, 30.0, 40.0, 50.0, 40.0, 0);
    new Text3D:Airwolves = Create3DTextLabel("Airwolves", 0xAFAFAFAA, 30.0, 40.0, 50.0, 40.0, 0);
    new Text3D:Bluefoxes = Create3DTextLabel("Bluefoxes", 0x33CCFFAA, 30.0, 40.0, 50.0, 40.0, 0);
    new Text3D:Thunderbirds = Create3DTextLabel("Thunderbirds", 0xFFFF00AA, 30.0, 40.0, 50.0, 40.0, 0);
Reply


Messages In This Thread
Delete3DTextLabel - by cruising - 15.01.2012, 20:30
Re: Delete3DTextLabel - by Buzzbomb - 15.01.2012, 21:45
Re: Delete3DTextLabel - by PawnoQ - 15.01.2012, 21:50
Re: Delete3DTextLabel - by cruising - 15.01.2012, 21:57

Forum Jump:


Users browsing this thread: 1 Guest(s)