19.01.2012, 17:26
It's totally different, because you told him to add the forward but still that won't work
pawn Code:
forward GetUp(playerid); // <-
public GetUp(playerid)
{
new cmd[256];
cmd = strtok(cmd);
if(strcmp(cmd, "/getup", true) == 0) {
new Float:health;
GetPlayerHealth(playerid,health);
if(health <= 20) {
SetPlayerHealth(playerid, 25);
TogglePlayerControllable(playerid,1);
}
}
return 1;
}
// Thats wrong because all the command inside the custom callback will be undefined symbols.