31.01.2013, 20:40
Getting used to pawno everyday, but as every new starter we have to comit mistakes.
So here's the command
Error in line
Error name: Invalid function or declaration.
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");
}
pawn Код:
}else return