18.03.2012, 03:46
scripting can be very tricky when it comes to brackets and such. what vrondakis said is right, you missed one bracket.
fixed the code, try this:
fixed the code, try this:
pawn Код:
if(strcmp(cmdtext, "/sfopen", true))
{
if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
{
if (IsPlayerInRangeOfPoint(playerid, 15,-1564.4650,661.7663,7.0391))
{
if(sfpdg1 == 1) {SendClientMessage(playerid, COLOR_GREY, "** Gate is Already Opened"); return 1; }
MoveDynamic(sfpdgate1,-1572.1999511719, 658.79998779297, 6.9000000953674, 0);
SendClientMessage(playerid, COLOR_BLUE,"The Barrier is Opened.");
SendClientMessage(playerid, COLOR_WHITE,"Hint: Use /sfclose to close it again.");
format(string, sizeof(string), "* %s takes his/her remote and Open.", sendername);
sfpdg1 = 1;
}
else
{
SendClientMessage(playerid, COLOR_GREY,"* Not near a Barrier that you can open.");
}
}
return 1;
}