SA-MP Forums Archive
Label ID problems - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Label ID problems (/showthread.php?tid=496194)



Label ID problems - Nourdin - 20.02.2014

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?


Re: Label ID problems - Nourdin - 20.02.2014

Sorry little mistake, thread updated.


Re : Label ID problems - MCZOFT - 21.02.2014

can you show me your editlabel Command ?