Jump to content
  • 0

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


Question

Posted

#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

10 answers to this question

Recommended Posts

Posted

trebuie sa pui asta in script unde exact nush ca nu pre le am cu scriptingu

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

#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

Posted

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.

Posted

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.

Posted

In loc de PlayerInfo pune tu cum ai variabila aia acolo p_Data playerinfo accinfo sau cum o fi uitate si tu pe acolo si vezi ce variabila ai.. si schimba PlayerInfo cu ce ai tu

35012l1.png.aee1a3398b9bd9f8eec50574d2cd

Posted
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;
}

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.