• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] [Help] warning 239: literal array/string passed to a non-const parameter
#2
Well, I've fixed it... I don't know why this removes the warning, but it works so I guess that's all that matters. If someone could explain why this works instead of the original method, I'd appreciate that.



Code:
    new

        timer[12], int[12];

    format(timer, sizeof(timer), "KickTimer");

    format(int, sizeof(int), "i");

    SetTimerEx(timer, 100, false, int, playerid);

    return 1;
  Reply


Messages In This Thread
RE: [Help] warning 239: literal array/string passed to a non-const parameter - by Behemoth - 2021-01-19, 09:12 PM

Forum Jump: