Noob question :$
#1

Damn anyone can tell me how to set raange on a gate? -.-

pawn Code:
if(strcmp(cmd, "/openpd1", true) == 0)
    {
      if(IsPlayerConnected(playerid))
      {
            if(PlayerInfo[playerid][pFaction] != 255 && DynamicFactions[PlayerInfo[playerid][pFaction]][fType] == 1)
            {
              //if(PlayerToPoint(10.0, playerid,246.3236,72.0459,1003.6406)
              {
                    MoveObject(pddoor1, 244.0578,72.4314,1002.5406, 3.5000);
                    MoveObject(pddoor2, 247.1478,72.4314,1002.5406, 3.5000);
                    return 1;
                }
            }
            return 1;
        }
        return 1;
    }
Reply
#2

Use PlayerToPoint
Reply
#3

playertopint is there lol, but its // because it give sme error
Reply
#4

What error?
Reply
#5

C:\Documents and Settings\Proprietбrio\Ambiente de trabalho\Hillsbrad Foothills\gamemodes\crp.pwn(5962) : error 001: expected token: ")", but found "{"
Reply
#6

lol
if(PlayerToPoint(10.0, playerid,246.3236,72.0459,1003.6406))
Reply
#7

WTF?

Lol, damn, i fell so imbaraced, lock and delete!!!!!

EDIT: or not..

Now i get this errors on the same line.

pawn Code:
C:\Documents and Settings\Proprietбrio\Ambiente de trabalho\Hillsbrad Foothills\gamemodes\crp.pwn(6012) : error 036: empty statement
Reply
#8

dont put brackets in brackets

pawn Code:
DynamicFactions[PlayerInfo[playerid][pFaction]][fType]
make it like this
pawn Code:
new variable = PlayerInfo[playerid][pFaction]
            if(PlayerInfo[playerid][pFaction] != 255 && DynamicFactions[variable][fType] == 1)
Reply
#9

Automatic Gates
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)