01.10.2011, 13:37
Its not errors its just warnings
You need to lineup
and
So it will look....like....
You need to lineup
pawn Код:
if (strcmp("/heal", cmdtext, true, 10) == 0)
pawn Код:
if (strcmp("/suicide", cmdtext, true, 10) == 0)
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;
}