/Heal Command Errors, Can't Understand them or how to fix them
#4

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:

pawn Код:
new HP = 100;
                else if(HP <= 100)
                {
                  SetPlayerHealth(giveplayerid, 100);
                }
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!
pawn Код:
SetPlayerHealth(giveplayerid, 100);
EDIT:

pawn Код:
GetPlayerHealth(giveplayerid, HPCheck);
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!
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)