Command question.
#1

Getting used to pawno everyday, but as every new starter we have to comit mistakes.


So here's the command

pawn Код:
CMD:ee(playerid, params[])
{
            if(!IsPlayerInAnyVehicle(playerid))
            if(gClass[playerid] != CLASS_PILOT) return SP COLOR_RED, "[ERROR]: You need to be a Pilot (Rank "#PILOT_RANK"); to use this command");
            {
            GetPlayerPos(playerid, EX,EY,EZ);
            SetPlayerPos(playerid, EX,EY,EZ+5);
            GivePlayerWeapon(playerid, 46, 1);
            }
        }else return SP COLOR_RED, "[ERROR]: You are not in any vehicle");
}
Error in line
pawn Код:
}else return
Error name: Invalid function or declaration.
Reply


Messages In This Thread
Command question. - by Strier - 31.01.2013, 20:40
Re: Command question. - by tyler12 - 31.01.2013, 20:43
Re: Command question. - by Roach_ - 31.01.2013, 21:11
AW: Re: Command question. - by Blackazur - 31.01.2013, 21:13
Respuesta: Command question. - by Strier - 31.01.2013, 21:25
Re: Command question. - by mamorunl - 31.01.2013, 21:36

Forum Jump:


Users browsing this thread: 1 Guest(s)