Label ID problems
#1

Hello there,

I created a system and once I type in /editlabel [id] it changes the label but it doesn't change the ID I type in.
For an example: I type /editlabel 2 (2 = ID) then it's not going to change the label text of ID 2 but ID 0. It's quite hard to explain..

pawn Код:
if(dialogid == DIALOG_EDITLABEL)
    {
        if(response)
        {
            switch(listitem)
            {
                case 0:
                {
                    ShowPlayerDialog(playerid, DIALOG_EDITLABEL+2, DIALOG_STYLE_INPUT, "Label System:", "Fill in the new string:", "Okay", "Cancel");
                   
                }

            }
        }
    }

    if(dialogid == DIALOG_EDITLABEL+2)
    {
        if(response)
        {
            new idx, labeltext[128], string[128];

            format(lInfo[idx][lText], 128, "%s", inputtext);
            format(string, sizeof(string), "%s", inputtext);
            UpdateDynamic3DTextLabelText(lInfo[idx][textID], COLOR_WHITE, inputtext);

            format(labeltext, sizeof(labeltext), "You have set label ID %d's text to %s", idx, inputtext);
            SendClientMessage(playerid, COLOR_GREEN, labeltext);

        }
    }


    return 1;
}
Anyone that can help me?
Reply
#2

Sorry little mistake, thread updated.
Reply
#3

can you show me your editlabel Command ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)