28.07.2011, 21:28
xkirill: "loose indentation damage your script so you should try to fix this "
Incorrect Version:
Having loose indentation doesn't damage your script, it just makes it unclear and annoying when you receive warnings. Also, that example you posted would give warnings because of the place your return statement is in.
Correct Version:
Incorrect Version:
pawn Код:
if (strcmp("/hna", cmdtext, true, 10) == 0)
{
SetPlayerHealth(playerid, 100.0);
SetPlayerArmour(playerid, 100.0);
return 1;
}
Correct Version:
pawn Код:
if (strcmp("/hna", cmdtext, true, 10) == 0)
{
SetPlayerHealth(playerid, 100.0);
SetPlayerArmour(playerid, 100.0);
return 1;
}