Simple warning
#1

Hey, what's wrong with it?
pawn Код:
if (strcmp("/kill", cmdtext, true) == 0)
    {
        SetPlayerHealth(0);
        return 1;
    }
The warning:
Код:
warning 202: number of arguments does not match definition
Reply
#2

That warning means you're missing a (non-optional) parameter in that function, which in this case is playerid.
pawn Код:
if (strcmp("/kill", cmdtext, true) == 0)
    {
        SetPlayerHealth(playerid,0);
        return 1;
    }
Reply
#3

SetPlayerHealth(playerid, 0.0);

Try this.
Reply
#4

Код:
if (strcmp("/kill", cmdtext, true) == 0)
    {
        SetPlayerHealth(playerid,0);
        return 1;
    }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)