ShowPlayerDialog - literal array/string passed to a non-const parameter
#4

I reverted back and tested compiler 3.10.9 but it did not give me this error for `ShowPlayerDialog` function. Here is my test:
pawn Код:
#include <a_samp>

#define D_ADMINLIST 5
#define q "{FFFFFF}"

main()
{
    const playerid = 0;
   
    new message[] = "Nickname\tLevel\tStatus\n";
   
    ShowPlayerDialog(playerid, D_ADMINLIST, DIALOG_STYLE_TABLIST_HEADERS, ""q"??????????????", message, "Ok", "");
}
Can you open a new file and try to compile it? If it compiles without warnings/errors, then the problem lies somewhere else.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)