adding some lines problem
#5

Its not errors its just warnings
You need to lineup
pawn Код:
if (strcmp("/heal", cmdtext, true, 10) == 0)
and
pawn Код:
if (strcmp("/suicide", cmdtext, true, 10) == 0)
So it will look....like....
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/heal", cmdtext, true, 10) == 0)
    {
        SetPlayerHealth(playerid, 100);
        return 1;
    }
    if (strcmp("/suicide", cmdtext, true, 10) == 0)
    {
        SetPlayerHealth(playerid, 0);
        return 1;
    }
    return 0;
}
Reply


Messages In This Thread
adding some lines problem - by KissOfDeath - 01.10.2011, 13:31
Re: adding some lines problem - by Kingunit - 01.10.2011, 13:36
Re: adding some lines problem - by Wesley221 - 01.10.2011, 13:36
Re: adding some lines problem - by Jafet_Macario - 01.10.2011, 13:36
Re: adding some lines problem - by DRIFT_HUNTER - 01.10.2011, 13:37
Re: adding some lines problem - by KissOfDeath - 01.10.2011, 13:39

Forum Jump:


Users browsing this thread: 2 Guest(s)