How to ignore warnings?
#1

Is it possible to make the compiler ignore the warnings, and doesn't shows them every time I compile a FS?

Код:
warning 209: function "cmd_engine" should return a value
I know, simple Return 1; at the bottom of the command would fix it, but I need it not to return anything.
Reply
#2

Just fix it. There's no other way.
Reply
#3

I need it not to return anything, because I have a same command in the game mode, and if the engine command returns 1 in the FS, the game mode one doesn't even get checked.
Reply
#4

It should return a value, to stop the command.
If you don't like like this.
pawn Код:
CMD:kill(playerid, params[])
{
    SetPlayerHealth(playerid, 0.0);
    return 1;
}
You can make it like that.
pawn Код:
CMD:kill(playerid, params[])
{
    return SetPlayerHealth(playerid, 0.0);
}
But it's nessecasy to return a value for a command or Callback.
Reply
#5

return 0 instead of 1.
Reply
#6

there is the -w (suppress warning) parameter for the compiler, use it like
Код:
-w203
in the compile options.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)