18.03.2012, 12:15
Hey everyone,
I've a problem with these lines below:
If i add them, all my other commands just don't work anymore.
Can someone please tell me what to do?
I'd appreciate it.
Thanks
I've a problem with these lines below:
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; }
MoveDynamicObject(sfpdg1,-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;
}
return 0;
Can someone please tell me what to do?
I'd appreciate it.
Thanks