YSI-Includes icon indicating copy to clipboard operation
YSI-Includes copied to clipboard

[y_timers] const correct warning for no reason

Open ravesamp opened this issue 2 years ago • 1 comments

I'm getting this warning even if I modify the string inside the timer: warning 214: possibly a "const" array argument was intended: "message"

timer UpdatePagerTD[500](playerid, string:message[])
{
    UpdatePagerTimer[playerid] = Timer:0;

    strdel(message, 0, 1);
    Pager_ShowMessage(playerid, message);
}

ravesamp avatar Sep 11 '22 15:09 ravesamp

I can't reproduce this. Is it still happening?

Y-Less avatar Apr 24 '24 23:04 Y-Less