Scripting problem
#1

Hey everyone,
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;
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
Reply
#2

add in between other commands without return 0;
Reply
#3

ok i'll give it a go
Reply
#4

it still doesn't work.
Does anyone have another idea/option?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)