Not inputting text? Dialogs
#5

Ignore the above post for now..

Now whenever I do it and click the dialog to edit the text it comes up with 'You have changed Update 1 to input text'. when I didnt type anything?

Quote:

if(dialogid == 16512)
{
if(response)
{
if(strlen(inputtext) >= 2 && strlen(inputtext) <= 64)
{
strmid(arrUpdates[iUpd][g_Update1], inputtext, 0, strlen(inputtext), sizeof arrUpdates);
//arrUpdates[iUpd][g_Update1] = strlen(inputtext);
format(string, sizeof(string), "You have changed Update 1 to %s. (/updates)", inputtext);
SendClientMessageEx(playerid, COLOR_LIGHTBLUE, string);
CreateDynamicUpdates(strlen(inputtext));
SaveDynamicUpdates();
}
else return ShowPlayerDialog(playerid, 16512, DIALOG_STYLE_LIST, "Update 1:", "Input text\nClear Update", "Select", "Cancel");
}
}

Quote:

if(dialogid == 16525)
{
if(response)
{
if(listitem == 0)
{
format(string, sizeof(string), "(Updates must remain under 64 characters)", arrUpdates[iUpd][g_Update1]);
ShowPlayerDialog(playerid, 16512, DIALOG_STYLE_INPUT, "Edit Updates", string, "Select", "Cancel");
}
if(listitem == 1)
{
arrUpdates[iUpd][g_Update1] = 0;
SendClientMessage(playerid, COLOR_WHITE, "You have cleared Update 1 and it no longer exists.");
SaveDynamicUpdates();
}
}
}

Reply


Messages In This Thread
Not inputting text? Dialogs - by RLGaming - 07.10.2012, 04:59
Respuesta: Not inputting text? Dialogs - by WCrimson - 07.10.2012, 05:10
Re: Not inputting text? Dialogs - by Dubya - 07.10.2012, 05:20
Re: Not inputting text? Dialogs - by RLGaming - 07.10.2012, 12:12
Re: Not inputting text? Dialogs - by RLGaming - 07.10.2012, 12:50
Re: Not inputting text? Dialogs - by RLGaming - 07.10.2012, 13:50
Re: Not inputting text? Dialogs - by Dubya - 07.10.2012, 15:04

Forum Jump:


Users browsing this thread: 4 Guest(s)