Сергей
08.08.2019, 23:51
Доброго времени суток, случилась такая мини проблема, обновил инклуд 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
SetPVarInt(playerid, "USEDIALOGID", dialogid);
return 1;
}
Убираем везде const - получаем варнинг на конст-корректность
warning 239: literal array/string passed to a non-const parameter
Возвращаем назад 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
SetPVarInt(playerid, "USEDIALOGID", dialogid);
return 1;
}
Убираем везде const - получаем варнинг на конст-корректность
warning 239: literal array/string passed to a non-const parameter
Возвращаем назад a_samp, и проблемы исчезают, пожалуйста, объясните, что за магия?