14.01.2015, 10:45
Код:
C:\Documents and Settings\2012\Desktop\JaKes FuN GM_Linux\JaKe_Linux\gamemodes\blank.pwn(3348) : warning 209: function "cmd_healall" should return a value C:\Documents and Settings\2012\Desktop\JaKes FuN GM_Linux\JaKe_Linux\gamemodes\blank.pwn(3349) : error 010: invalid function or declaration C:\Documents and Settings\2012\Desktop\JaKes FuN GM_Linux\JaKe_Linux\gamemodes\blank.pwn(3353) : error 010: invalid function or declaration Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors.
Код:
}
Код:
else
Код:
return 1;
Код:
CMD:healall(playerid,params[]) { new string[200]; LoginCheck(playerid); if(User[playerid][accountAdmin] >= 4) { foreach(Player, i) { PlayerPlaySound(i,1057,0.0,0.0,0.0); SetPlayerHealth(i,100.0); } } format(string, 128, "[HEAL] "white"Everyone has been healed by %s.", GetName(playerid)); SendAMessage(COLOR_RED, string); } //-> Warning 3348 else //-> Error 3349 { SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use that command!"); // if not, send him only the following message } return 1; //-> Error 3353 } }