AdminScript Help.
#7

Thanks to you guy's i figured out the errors. But i Can NOT seem to figure this one out...

pawn Код:
C:\SAMPServer\filterscripts\AdminScript.pwn(761) : error 036: empty statement
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
This is the Command.

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;
}
Reply


Messages In This Thread
AdminScript Help. - by SublimESmokeR420 - 17.04.2012, 21:31
Re: AdminScript Help. - by TyThaBomb - 17.04.2012, 21:39
Re: AdminScript Help. - by WLSF - 17.04.2012, 21:54
Re: AdminScript Help. - by SublimESmokeR420 - 18.04.2012, 01:22
Re: AdminScript Help. - by WLSF - 18.04.2012, 01:32
Re: AdminScript Help. - by SublimESmokeR420 - 18.04.2012, 02:26
Re: AdminScript Help. - by SublimESmokeR420 - 18.04.2012, 02:30
Re: AdminScript Help. - by JJB562 - 18.04.2012, 04:28
Re: AdminScript Help. - by SublimESmokeR420 - 18.04.2012, 21:24

Forum Jump:


Users browsing this thread: 1 Guest(s)