12.07.2009, 23:11
hey guys.. why does this give a warning?
the warning line is:
help plz? thnx.
Код:
if (strcmp("/kill",cmdtext,true)==0) {
if(GetPlayerHealth(playerid) == 0) {
SendClientMessage(playerid,BRIGHTRED,"You are already dead.");
return 1; }
else {
new name[MAX_PLAYER_NAME];
new string[256];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "*** %s commited suicide ***", name);
printf("*** %s commited suicide ***", name);
SendClientMessageToAll(LEMON, string);
SetPlayerHealth(playerid,00.00);
return 1; } }
Код:
C:\SAMPSE~1\FILTER~1\manhunt.pwn(249) : warning 202: number of arguments does not match definition Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Warning.
Код:
if(GetPlayerHealth(playerid) == 0) {

