Code error please help
#3

Quote:
Originally Posted by amirab
Посмотреть сообщение
change your code to this one
You didn't even change anything....
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;
}
You had a closing brace when there was no matching opening brace.
Код:
if (!IsPlayerInRangeOfPoint(playerid, 20, 1479.1448,-1675.6207,14.0469))
    SendClientMessageEx(playerid, COLOR_GREY, "Ban khong o trong pershing square.");
    }
You had a closing brace "}" for an 'if' statement that didn't use one.
Reply


Messages In This Thread
Code error please help - by LuisPark - 22.12.2014, 11:44
Re: Code error please help - by amirab - 22.12.2014, 11:49
Re: Code error please help - by Threshold - 22.12.2014, 12:57

Forum Jump:


Users browsing this thread: 1 Guest(s)