Jump to content
  • 0

Re: /gateopen doar PD-care ma ajuta ii doresc multa sanatate


andrei04072

Question

#include <a_samp>

new Gate;

public OnFilterScriptInit()

{

  Gate = CreateObject(968, 1540.13, -1611.08, 12.94, 0.0, 88.42,  90.00, 100.0);

  return 1;

}

public OnPlayerCommandText(playerid, cmdtext[])

{

  if(!strcmp(cmdtext, "/gateopen", true)){

      if(IsPlayerInRangeOfPoint(playerid, 15.0, 1540.13, -1611.08, 12.94)){

        SetTimerEx("CloseGate", 7000, false, "i", playerid);

        MoveObject(Gate, 1540.13, -1611.08, 12.94, 3.0, 0.0, 0.0, 90.00);

        return 1;

      }

  }

  return 0;

}

forward CloseGate(playerid);

public CloseGate(playerid)

{

  MoveObject(Gate, 1540.13, -1611.08, 12.94, 3.0, 0.0, 88.42,  90.00);

}

Vreau ca poarta asta sa o poata misca decat PD-ul

Link to comment
Share on other sites

10 answers to this question

Recommended Posts

#include <a_samp>

new Gate;

public OnFilterScriptInit()

{

  Gate = CreateObject(968, 1540.13, -1611.08, 12.94, 0.0, 88.42,  90.00, 100.0);

  return 1;

}

public OnPlayerCommandText(playerid, cmdtext[])

{

  if(!strcmp(cmdtext, "/gateopen", true)){

      if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1){

        SetTimerEx("CloseGate", 7000, false, "i", playerid);

        MoveObject(Gate, 1540.13, -1611.08, 12.94, 3.0, 0.0, 0.0, 90.00);

        return 1;

      }

  }

  return 0;

}

forward CloseGate(playerid);

public CloseGate(playerid)

{

  MoveObject(Gate, 1540.13, -1611.08, 12.94, 3.0, 0.0, 88.42,  90.00);

}

ia vezi asa

Link to comment
Share on other sites

Erorile asta mi le da

C:\Documents and Settings\Anonim\Desktop\p.pwn(13) : error 017: undefined symbol "PlayerInfo"

C:\Documents and Settings\Anonim\Desktop\p.pwn(13) : warning 215: expression has no effect

C:\Documents and Settings\Anonim\Desktop\p.pwn(13) : error 001: expected token: ";", but found "]"

C:\Documents and Settings\Anonim\Desktop\p.pwn(13) : error 029: invalid expression, assumed zero

C:\Documents and Settings\Anonim\Desktop\p.pwn(13) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

4 Errors.

Link to comment
Share on other sites

Nu merge imi da erorile

C:\Documents and Settings\Anonim\Desktop\p.pwn(13) : error 017: undefined symbol "PlayerInfo"

C:\Documents and Settings\Anonim\Desktop\p.pwn(13) : warning 215: expression has no effect

C:\Documents and Settings\Anonim\Desktop\p.pwn(13) : error 001: expected token: ";", but found "]"

C:\Documents and Settings\Anonim\Desktop\p.pwn(13) : error 029: invalid expression, assumed zero

C:\Documents and Settings\Anonim\Desktop\p.pwn(13) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

4 Errors.

Link to comment
Share on other sites

if(!strcmp(cmdtext, "/gateopen", true))
{
    if(PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1)
    {
        if(IsPlayerInRangeOfPoint(playerid, 15.0, 1540.13, -1611.08, 12.94))
		{
      		SetTimerEx("CloseGate", 7000, false, "i", playerid);
         	MoveObject(Gate, 1540.13, -1611.08, 12.94, 3.0, 0.0, 0.0, 90.00);
		}
	}
    return 1;
}

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.