public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { switch(dialogid) { case 126: { if(response) { new string[128]; format(string, sizeof(string),"%s radio unit selected.",UnitNames[listitem][0]); SendClientMessage(playerid, COLOR_WHITE, string); SetPVarInt(playerid, "PDUNIT", listitem+1); } } } return 1; }