Portal SAMP
[Ajuda] error 035: argument type mismatch (argument 4) - Versão de Impressão

+- Portal SAMP (https://portalsamp.com)
+-- Fórum: SA-MP (https://portalsamp.com/forumdisplay.php?fid=5)
+--- Fórum: Área de suporte (https://portalsamp.com/forumdisplay.php?fid=6)
+--- Tópico: [Ajuda] error 035: argument type mismatch (argument 4) (/showthread.php?tid=775)



error 035: argument type mismatch (argument 4) - Rev - 14/02/2021

Alguém pode me ajudar com isso?

Código PHP:
PreviewModelDialog.inc(1179) : error 035argument type mismatch (argument 4)
PreviewModelDialog.inc(1187) : error 035argument type mismatch (argument 4


Código:
stock Prev_ShowPlayerDialog(playerid, dialogid, style, const caption[], const info[], const button1[], const button2[]) {
if (playerid < 0 || playerid >= MAX_PLAYERS) {
    return 0;
}

if (Prev@PlayerDialogID[playerid] != -1) {
Prev_HidePlayerDialog(playerid);
  }

if (style != DIALOG_STYLE_PREVIEW_MODEL) {
    return ShowPlayerDialog(playerid, dialogid, style, caption, info, button1, button2); //Essa é a linha 1179
}

if (dialogid < 0) {
    if (style == DIALOG_STYLE_PREVIEW_MODEL) {
        return 1;
    }

    return ShowPlayerDialog(playerid, dialogid, style, caption, info, button1, button2); //Essa é a linha 1187
}



RE: error 035: argument type mismatch (argument 4) - Vel - 14/02/2021

Remova a keyword const dos parâmetros caption, info, button1 e button2.


RE: error 035: argument type mismatch (argument 4) - Rev - 14/02/2021

(14/02/2021 17:08)Vel Escreveu: Remova a keyword const dos parâmetros caption, info, button1 e button2.

Tirei o const , mas e compilou normal aqui, mas esse const não vai fazer dar erro em alguma funcionalidade in game não? o que ele faz mesmo?
e tipo, parou de funcionar depois que atualizei para 0.3DL, na 0.3.7 ele funciona normal, sem os erros mencionados a cima.