Problem with the gates!
#1

Hey, guys!
I have a problem with zcmd. So here is the code, and i have some errors:


pawn Код:
if(playerDB[playerid][admin])
    {
            CMD:fly(playerid, params[])
        {
            SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USEJETPACK);
            SendClientMessage(playerid,0xEA0000FF,"* You got Jet-Pack");
            return 1;
        }
    return 1;
    }
All I want is that only admins can use this commands. But if I put in the command fly this:
pawn Код:
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,COLOR_ORANGE,"Si komanda tik administracijai.");
and when I go into game and type that command it says this command is only for admin. I am admin in this server
Here is the error:
pawn Код:
D:\GTASA~1\ghjhj\GAMEMO~1\band7.pwn(17658) : error 010: invalid function or declaration
D:\GTASA~1\ghjhj\GAMEMO~1\band7.pwn(17662) : error 054: unmatched closing brace ("}")
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.
Whats the problem? Could you help me? Thanks
Sorry for my bad english
Reply


Messages In This Thread
Help with admin! - by Setkus - 04.01.2012, 18:59
Re: Problem with the gates! - by Konstantinos - 04.01.2012, 19:07
Re: Problem with the gates! - by Setkus - 04.01.2012, 19:10
Re: Problem with the gates! - by Setkus - 05.01.2012, 08:31
Re: Problem with the gates! - by FreshDoubleX - 05.01.2012, 09:08
Re: Problem with the gates! - by The God - 05.01.2012, 09:22
Re: Problem with the gates! - by Setkus - 05.01.2012, 16:53

Forum Jump:


Users browsing this thread: 1 Guest(s)