Weird command fail (again...)
#1

Hey guys,

Once again i messed up my script, and i dont know what i did wrong. I just added a simple command (akill), and then it was like poof bye bye admin script.. When i delete the akill command, it works 100%, and i dont get any problems

pawn Код:
dcmd_akill(playerid, params[])
    {
        new Player2;
        if(gPlayerInfo[playerid][PLAYER_LEVEL] < gCommands[AKILL])
        {
            new string[128];
            format(string, sizeof(string), "You must be a level %d administrator to use that command!", gCommands[AKILL]);
            SendClientMessage(playerid, COLOR_ORANGE, string);
        }
            else if (sscanf(params, "u", Player2)) return SendClientMessage(playerid, COLOR_ORANGE, "Usage: /akill [playerid]");
            else if (Player2 == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_ORANGE, "Player not Connected");
            else {
            SendClientMessage(Player2, COLOR_RED, "You have been killed by an admin");
            SetPlayerHealth(Player2, 0);
        }
        return 0;
    }
It is this command, there are no errors when i compile, just when i start up the server; it doesnt print the line i putted on OnFilterScriptInit (This is JUST when i HAVE the command in it, when i comment it; the line prints)

Anyone could check it?

Thanks
~Wesley
Reply


Messages In This Thread
Weird command fail (again...) - by Wesley221 - 21.05.2011, 19:27
Re: Weird command fail (again...) - by Wesley221 - 22.05.2011, 08:25
Re: Weird command fail (again...) - by xir - 22.05.2011, 09:22
Re: Weird command fail (again...) - by Wesley221 - 22.05.2011, 09:26
Re: Weird command fail (again...) - by xir - 22.05.2011, 09:27
Re: Weird command fail (again...) - by Wesley221 - 22.05.2011, 09:29
Re: Weird command fail (again...) - by Wesley221 - 22.05.2011, 16:35
Re: Weird command fail (again...) - by xir - 22.05.2011, 17:55
Re: Weird command fail (again...) - by Wesley221 - 22.05.2011, 17:56
Re: Weird command fail (again...) - by Wesley221 - 23.05.2011, 10:34

Forum Jump:


Users browsing this thread: 1 Guest(s)