Oko kapije ponovo

Započeo Borelli, Maj 04, 2020, 21:13:54 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Problem(error/warning): Ponovo kapija nece da mi se zatvori, otvori se ona ali da se zatvori nema sanse
Dio skripte: [pawn]else if(IsPlayerInRangeOfPoint(playerid, 10.0, -2241.8083,643.2585,49.4479))   // BDT Kapija
   {
      if(PlayerInfo[playerid][pClan] == 6 || PlayerInfo[playerid][pLider] == 6)
      {
         MoveObject(KapijaBDT, -2240.99170, 640.49658, 50.68750, 2.0);
         KapijeTimer[playerid] = SetTimer("ZatvaranjeBDTD", 7000, 0);
            format(string, sizeof(string), "* %s otvara kapiju.", GetName(playerid));
         ProxDetector(30.0, playerid, string, PROX,PROX,PROX,PROX,PROX);
         SCM(playerid,-1,""ZUTA"BDT | "BELA"Kapija je otvorena i zatvorice se automacki!");
      }
      else return SCM(playerid,-1, ""ZUTA"[BDT]: "BELA"Samo clanovi BDT!");
   } [/pawn]
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): //
Slika/video ingame problema(obavezno ako je ingame problem): evo i ovo [pawn]forward ZatvaranjeBDTD();
public ZatvaranjeBDTD()
{
    MoveDynamicObject(KapijaBDT,-2240.93164, 649.69659, 50.68750, 2.00);
   return 1;
}[/pawn]
[pawn]KapijaBDT = CreateObject(19912, -2240.93164, 649.69659, 50.68750,   0.00000, 0.00000, 90.00000);[/pawn]

//
Citat: CheezItFollow your heart and own style.
Citat: PottusThat is perfectly fine, I'm just pointing out where you made mistakes what does hearing "good job" get you? Absolutely nothing. You need to hear the problems otherwise you'll keep making the same mistakes :)

Eto kad ne gledam, resio sam bio je problem u MoveDynamicObject a objekat nije dinamican. lock