07.10.2012, 12:50
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?
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(); } } } |