06.12.2016, 20:23
Looking at the code, the size of YSI_g_sDialogPlayers and YSI_g_sDialogMasters arrays is 2000 and you used 5000 as a dialogid. Keep it below that limit instead of increasing MAX_DIALOGS and it will fix the run time error.