Fixed it myself the right code is different from the example in Natives List
the right code is

            int bg = 1;
            int p6 = 1;
            SetWarningMessage("warning_message_first_line", instructionalKey, "warning_message_second_line", true, -1, ref bg, ref p6, true, 1);