public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == 10002 && response) { if(!Numbers(inputtext) && strval(inputtext) != -1) return SendClientMessage(playerid,DEF_COL_RED,"You only can use numbers!"),ShowPlayerDialog(playerid,10001,DIALOG_ STYLE_LIST,"{A80000}Edit Object","Position\nVirtual World\nInterior ID\nStream Distance\nDelete Object","Next","Close"); new id = EDIT_OBJECT_ID[playerid]; new EDITOR_QUERY[256]; format(EDITOR_QUERY, sizeof(EDITOR_QUERY), "UPDATE `OBJECTS` SET `VW`=%d WHERE `ID`=%d", strval(inputtext), EDITOR_OBJECT[id][OBJ_DB_ID]); db_free_result(db_query(EDITOR_DATABASE, EDITOR_QUERY)); SendClientMessage(playerid,DEF_COL_WHITE,"You successful changed to virtualworld of this object."); return ShowPlayerDialog(playerid,10001,DIALOG_STYLE_LIST, "{A80000}Edit Object","Position\nVirtual World\nInterior ID\nStream Distance\nDelete Object","Next","Close"); } |
19774: public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) 19775:{ |
Rename one of your "S@@_OnDialogResponse" To something like "S@@@_OnDialogResponse" And also rename the other "S@@_OnDialogResponse" that correspond to that one only.
|
And also rename the other "S@@_OnDialogResponse" that correspond to that one only. |