03.02.2015, 18:44
Hey there
I made a healing system, this one with zcmd
But one i make the commands when In game i see this error in the console

Notice that i'm playing in local host.
I made a healing system, this one with zcmd
PHP код:
CMD:heal(playerid, params[])
{
new targetid;
// if(PlayerInfo[playerid][pAdmin]>0)
// {
if(sscanf(params,"u", targetid)) return SendClientMessage(playerid, WHITE,"USAGE: /heal [PlayerID]");
else if (targetid == INVALID_PLAYER_ID) return SendClientMessage(playerid, WHITE, "Player not found");
else
{
SetPlayerHealth(targetid, 100);
SendClientMessage(playerid,WHITE,"Player Healed");
SendClientMessage(targetid,WHITE,"You have been healed"); return 1;
}
// }
// else SendClientMessage(playerid,WHITE,"You are not authorized to use this command"); return 1;
}

Notice that i'm playing in local host.