Jump to content
  • 0

Problema Script


Guest alexura12

Question

Guest alexura12
Posted

Deci am pus urmatoare comanda,si va rog sa imi spuneti cum fac sa se inchida automat gate, am incercat de mai multe ori si nu merge si inca ceva, cum sa pun ca sa numai cei din factiunea respectiva sa poate sa deschida gate.

new mygate;

mygate=CreateObject(971, -2242.361328, 643.135803, 51.993179, 0.0000, 0.0000, 269.9999);

{

if (strcmp("/gate", cmdtext, true, 10) == 0)

{

MoveObject(mygate, -2242.358643, 644.206421, 59.069702, 0.0000, 3.0);

SendClientMessage(playerid, 0xFFFFFF, "The gate is opening");

return 1;

}

if (strcmp("/gateclose", cmdtext, true, 10) == 0)

{

MoveObject(mygate,-2242.361328, 643.135803, 51.993179, 3.0);

SendClientMessage(playerid, 0xFFFFFF, "The gate is closing");

return 1;

}

return 0;

}

5 answers to this question

Recommended Posts

Posted

forward GateClose()

public GateClose()
{
MoveObject(mygate,-2242.361328, 643.135803, 51.993179, 3.0);
SendClientMessage(playerid, 0xFFFFFF, "The gate is closing");
return 1;
}

  if (strcmp("/gate", cmdtext, true, 10) == 0)

  {

  MoveObject(mygate, -2242.358643, 644.206421, 59.069702, 0.0000, 3.0);

  SendClientMessage(playerid, 0xFFFFFF, "The gate is opening");

SetTimer("GateClose", 5000, 1);//in loc de 5000 pui la cate secunde vrei sa se inchida

  return 1;

  }

Stiu si eu ... branza e pe bani, dar eu tot ma joc pe gratis!

Posted

if (strcmp("/gate", cmdtext, true, 10) == 0)
   {
       if(IsPlayerConnected(playerid))
       {
          if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1
          {
          MoveObject(mygate, -2242.358643, 644.206421, 59.069702, 0.0000, 3.0);
          SendClientMessage(playerid, 0xFFFFFF, "The gate is opening");
          SetTimer("GateClose", 5000, 1);//in loc de 5000 pui la cate secunde vrei sa se inchida
          }
        } 
     return 1;
   }
forward GateClose()

public GateClose()
{
MoveObject(mygate,-2242.361328, 643.135803, 51.993179, 3.0);
SendClientMessage(playerid, 0xFFFFFF, "The gate is closing");
return 1;
}

modifici tu id-ul factini eu ti-am pus police department

Incearca asta vezi daca merge

Samp.OnlyPro.ro - RolePlay - Join Us !

Guest alexura12
Posted

D:\Untitled.pwn(96) : error 017: undefined symbol "PlayerInfo"

D:\Untitled.pwn(96) : warning 215: expression has no effect

D:\Untitled.pwn(96) : error 001: expected token: ";", but found "]"

D:\Untitled.pwn(96) : error 029: invalid expression, assumed zero

D:\Untitled.pwn(96) : fatal error 107: too many error messages on one line

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

4 Errors.

Eroarea e de la asta:

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

Ma poate ajuta cineva va rog frumos?

#In rest e ff bun, nu am nici o eroare

Guest alexura12
Posted

mda...nu mai pot de 2 zile non-stop ma chinui sa pun o poarta la factiunea the triads si  sa mearga comanda /gate numai membrii din factiunea de triads  si sa se inchida automat gate-ul...... ??? am sa il rog pe cineva daca mi-ar da gata facuta poarta de la The Triads as si incredibil de bucuros si recunoscator.. :'(

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.