20.02.2014, 21:01
(
Последний раз редактировалось Nourdin; 20.02.2014 в 21:51.
)
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..
Anyone that can help me?
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;
}