21.04.2012, 11:07
Hey guys i am not noticeable..so i have difficult a bit here i hope you can help me
:
errors:
4272 line:
:
pawn Код:
CMD:cia(playerid,params[])
{
if(IsPlayerInRangeOfPoint(playerid,3.0,1292.5715,-1012.6298,6645.7319) && gTeam[playerid] == TEAM_CIA) return SendClientMessage(playerid,-1,""COL_RED"ERROR:You are not at CIA lockers or you are not CIA!");
{
GivePlayerWeapon(playerid,29,100);
}
else if(gTeam[playerid] == TEAM_ARMY || gTeam[playerid] == TEAM_CIVILIAN || gTeam[playerid] == TEAM_COP || gTeam[playerid] == TEAM_MEDIC)
{
SendClientMessage(playerid,-1,""COL_RED"ERROR:You are not CIA Officer to use this command!");
}
return 1;
}
pawn Код:
(4272) : error 029: invalid expression, assumed zero
(4272) : warning 215: expression has no effect
(4272) : error 001: expected token: ";", but found "if"
pawn Код:
else if(gTeam[playerid] == TEAM_ARMY || gTeam[playerid] == TEAM_CIVILIAN || gTeam[playerid] == TEAM_COP || gTeam[playerid] == TEAM_MEDIC)