Attached Label cant delete
#3

Quote:
Originally Posted by Faisal_khan
Посмотреть сообщение
pawn Код:
if (strcmp("/back", cmdtext, true, 4) == 0)
    {
        TogglePlayerControllable(playerid,1);
        Delete3DTextLabel(Paused[playerid]);
        SendClientMessage(playerid,COLOR_PINK,"[Pause] You are not Paused Anymore !");
        return 1;
    }
    if (strcmp("/afk", cmdtext, true, 3) == 0)
    {
        Attach3DTextLabelToPlayer(Paused[playerid], playerid, 0.0, 0.0, 0.7);
        TogglePlayerControllable(playerid,0);
        SendClientMessage(playerid,COLOR_PINK,"[Pause] You are Paused!");
        return 1;
    }
pawn Код:
if (strcmp("/back", cmdtext, true, 5) == 0) // strcmp also considers "/" when it compares the length of the string
    {
        TogglePlayerControllable(playerid,1);
        Delete3DTextLabel(Paused[playerid]);
        SendClientMessage(playerid,COLOR_PINK,"[Pause] You are not Paused Anymore !");
        return 1;
    }
    if (strcmp("/afk", cmdtext, true, 4) == 0) // strcmp also considers "/" when it compares the length of the string
    {
        Attach3DTextLabelToPlayer(Paused[playerid], playerid, 0.0, 0.0, 0.7);
        TogglePlayerControllable(playerid,0);
        SendClientMessage(playerid,COLOR_PINK,"[Pause] You are Paused!");
        return 1;
    }
Reply


Messages In This Thread
Attached Label cant delete - by Admigo - 01.05.2012, 08:35
Re: Attached Label cant delete - by Faisal_khan - 01.05.2012, 09:54
Re: Attached Label cant delete - by Mark™ - 01.05.2012, 10:05

Forum Jump:


Users browsing this thread: 1 Guest(s)