12.05.2011, 16:47
Hey, I started a new GM from scratch as I'm learing to script and I learned about Zcmd and sscanf. I included them both and everything worked fine till I created the CMD, then on the server console I get the error: File or function is not found. I placed the command at the bottom of my script, it isn't in anyother callbacks:
Код:
CMD:heal(playerid, params[])
{
new Player;
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, RED, " You are not a administrator! ");
else if (sscanf(params, "u", Player)) return SendClientMessage(playerid, RED," Usage: /heal <playerID> ");
else if (Player == INVALID_PLAYER_ID) return SendClientMessage(playerid, RED," Invalid PlayerID ");
else
{
SetPlayerHealth(playerid, 100.0);
SendClientMessage(Player, GREEN, " You have been healed by an administrator! ");
SendClientMessage(playerid, GREEN, " Player healed! ");
}
return 1;
}


