Доброго времени суток, случилась такая мини проблема, обновил инклуд A_Samp, и случилось это:
Код:
error 035: argument type mismatch (argument 4)
Сама строка находится:
stock SPD(playerid, dialogid, style, const caption[], const info[], const button1[], const button2[])
{
ActiveDialog[playerid] = true;
ShowPlayerDialog(playerid
, dialogid
, style
, caption
, info
, button1
, button2
); // error 035 return 1;
}
Убираем везде const - получаем варнинг на конст-корректность
Код:
warning 239: literal array/string passed to a non-const parameter
Возвращаем назад a_samp, и проблемы исчезают, пожалуйста, объясните, что за магия?