05.05.2012, 13:58
Hey Guys I Want another Help with /healall . I am currently working on my admin system and i have dms in my server so... i was it like this that when we /healall that time if any player is in dm then he wont be healed his health would be the same as he has.
I tryed it .. but got one error see this...
ERROR:
Help = +REP :P
I tryed it .. but got one error see this...
pawn Код:
CMD:healall(playerid,params[])
{
if(PInfo[playerid][Level] >= 4)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerInDM(i))
{
SetPlayerHealth(i,GetPlayerHealth(i));
}
else
{
SetPlayerHealth(i,100);
}
}
new string[256];
format(string,sizeof(string),"***Administrator %s Has Healed All The Player.Expect In DM areas",PlayerName2(playerid));
SendClientMessageToAll(silver,string);
return 1;
}
else return SendClientMessage(playerid,red,"ERROR: You Are Not higher Level To Use This Command");
}
Quote:
(599) : warning 202: number of arguments does not match definition The Same Line in GETPLAYERHEALTH(I); |