Only 2 help
#1

Код:
COMMAND:clearchat(playerid)  {
    if (PInfo[playerid][LoggedIn] == true)
    {
        if (PInfo[playerid][PlayerLevel] > 3)
        {
        	for(new i = 0; i < 100; i++) SendClientMessageToAll(-1, " " );
    	} else {
        return SendClientMessage(playerid,-1,"{FF0000}ERROR: This command is only avaible for admins.");
    }
    return 1;
}
There is a error but there is no line... number: 21669
Код:
E:\WOT\gamemodes\555.pwn(21667) : warning 217: loose indentation
E:\WOT\gamemodes\555.pwn(21669) : error 030: compound statement not closed at the end of file (started at line 21659)
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
]

another problem:

Код:
CMD:ann(playerid, params[])
{
    if (PInfo[playerid][LoggedIn] == true)
    {
        if (PInfo[playerid][PlayerLevel] > 3)
        {
            new msg[200];
            if (sscanf(params, "s[200]", msg)) return SendClientMessage(playerid, -1, "Usage: /ann [message/announce]");

            if (IsPlayerConnected(playerid))
            {
                GameTextForAll(msg, 1000, 0);
            }
        }
        else return SendClientMessage(playerid, -1, "{FF0000}ERROR: you need to be atleast admin level 3 to use this command");
    }
    return 1;
}
I want this command only for admin level 3 + But it shows i need to be rcon.
And it shouldn't be lower than level 3
Reply


Messages In This Thread
Only 2 help - by Tuntun - 23.04.2014, 03:15
Re: Only 2 help - by nickdodd25 - 23.04.2014, 03:33
Re: Only 2 help - by Tuntun - 23.04.2014, 04:17
Re: Only 2 help - by JeaSon - 23.04.2014, 04:21
Re: Only 2 help - by Tuntun - 23.04.2014, 04:22
Re: Only 2 help - by itsCody - 23.04.2014, 04:26
Re: Only 2 help - by Tuntun - 23.04.2014, 05:10
Re: Only 2 help - by JeaSon - 23.04.2014, 05:12
Re: Only 2 help - by biker122 - 23.04.2014, 05:15
Re: Only 2 help - by Tuntun - 23.04.2014, 05:16

Forum Jump:


Users browsing this thread: 1 Guest(s)