Help with something.
#1

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;
}
Reply


Messages In This Thread
Help with something. - by Splixicit - 12.05.2011, 16:47
Re: Help with something. - by SchurmanCQC - 12.05.2011, 16:48
Re: Help with something. - by Ang916 - 12.05.2011, 16:53
Re: Help with something. - by Splixicit - 12.05.2011, 16:57
Re: Help with something. - by SchurmanCQC - 12.05.2011, 17:01
Re: Help with something. - by Splixicit - 12.05.2011, 17:05
Re: Help with something. - by SchurmanCQC - 12.05.2011, 17:10

Forum Jump:


Users browsing this thread: 1 Guest(s)