14.03.2009, 15:03
You can't have an "else if" statement following on from nothing. You could have an else if statement after an if statement..
This statement here is completely pointless:
It can be replaced with this, which would get rid of the error you mentioned, and would save a couple of lines and some pointless processing!
EDIT:
This won't work, as at no point have you defined giveplayerid! You either need to use strtok or sscanf! As the guy above me says, this script is broken in several places!
This statement here is completely pointless:
pawn Код:
new HP = 100;
else if(HP <= 100)
{
SetPlayerHealth(giveplayerid, 100);
}
pawn Код:
SetPlayerHealth(giveplayerid, 100);
pawn Код:
GetPlayerHealth(giveplayerid, HPCheck);

