18.04.2012, 02:30
(
Последний раз редактировалось SublimESmokeR420; 18.04.2012 в 02:33.
Причина: Putting the PAWN Lines.
)
Thanks to you guy's i figured out the errors. But i Can NOT seem to figure this one out...
This is the Command.
pawn Код:
C:\SAMPServer\filterscripts\AdminScript.pwn(761) : error 036: empty statement
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
pawn Код:
dcmd_sethp(playerid,params[])
{
new pid,ammount;
if(gPlayerInfo[playerid][PLAYER_LEVEL] >= 2);
else if(sscanf(params,"ud",pid,ammount)) SendClientMessage(playerid,COLOR_RED,"USAGE: /sethp [ID] [Ammount]");
else if(pid == INVALID_PLAYER_ID) SendClientMessage(playerid,COLOR_RED,"Player was not found");
else
{
new string[50],string1[50],name[MAX_PLAYER_NAME],name2[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
GetPlayerName(pid,name2,sizeof(name2));
SetPlayerHealth(pid,ammount);
format(string,sizeof(string),"You have set %s's health",name2);
format(string1,sizeof(string1),"Your health has been set by %s ",name);
SendClientMessage(pid,COLOR_YELLOW,string1);
SendClientMessage(playerid,COLOR_YELLOW,string);
}
return 1;
}