22.12.2014, 12:57
You didn't even change anything....
Correct code:
You had a closing brace when there was no matching opening brace.
You had a closing brace "}" for an 'if' statement that didn't use one.
Correct code:
pawn Код:
CMD:panels(playerid, params[])
{
if(!IsACop(playerid)) return SendClientMessageEx(playerid,COLOR_GREY,"ban khong a law enforcement officer.");
if(!IsPlayerInRangeOfPoint(playerid, 20, 1479.1448,-1675.6207,14.0469)) return SendClientMessageEx(playerid, COLOR_GREY, "Ban khong o trong pershing square.");
ShowPlayerDialog(playerid, PANEL, DIALOG_STYLE_LIST, "Security Panel", "Tram dieu khien canh cua nguc", "Operate", "Cancel");
return 1;
}
Код:
if (!IsPlayerInRangeOfPoint(playerid, 20, 1479.1448,-1675.6207,14.0469)) SendClientMessageEx(playerid, COLOR_GREY, "Ban khong o trong pershing square."); }