GTA Közösség - A magyar GTA fórum

San Andreas Multiplayer (SA-MP) => SA-MP: Szerverfejlesztés => Segítségkérés => A témát indította: N@rbirock - 2012. Március 19. - 14:34:05

Cím: pickup hiba
Írta: N@rbirock - 2012. Március 19. - 14:34:05
Csináltam egy pickupot ami elteleportál valahova de az a baj hogy a házrendszerem pickupos és mikor a házrendszer pickupjába megyek akkor teleportál. Mit tegyek?
                                                                                                               Elöre is köszönöm a válaszotokat
 
public OnPlayerPickUpPickup(playerid, pickupid)
{
          if(pickupid == targyalo)
      {
            SetPlayerPos(playerid,2324.4702,-1147.4818,1050.7101);
           SetPlayerInterior(playerid, 12);
      }
  if(pickupid == targyalo1)
      {
            SetPlayerPos(playerid,360.4725,2483.6438,16.4844);
           SetPlayerInterior(playerid, 0);
      }
return 1;
}
Cím: pickup hiba
Írta: Rammstein - 2012. Március 19. - 14:42:35
:hmmm:

Nekem is volt ilyenem, megkérdezném, hogy a házrendszered egy külön FS-ként vagy a módba beépítve használod?


Stuntzor
Cím: pickup hiba
Írta: N@rbirock - 2012. Március 19. - 14:46:30
külön fs
Cím: pickup hiba
Írta: Flash - 2012. Március 19. - 16:03:37
Szerintem a definációja ütközik, a ház rendszer pickup definálójával.  :smokin:
Cím: pickup hiba
Írta: N@rbirock - 2012. Március 19. - 16:10:37
itt a ház rendszer http://pastebin.com/MDTwVXL8
Cím: pickup hiba
Írta: Flash - 2012. Március 19. - 16:13:54
Szerintem ezek közül valamelyikkel ütközik:
 
#define VClassBike          1
#define VClassBoat          2
#define VClassConvertible   3
#define VClassHelicopter    4
#define VClassIndustrial    5
#define VClassLowRider      6
#define VClassOffRoad       7
#define VClassPlane         8
#define VClassPublic        9
#define VClassRCVehicle     10
#define VClassSaloons       11
#define VClassSportCar      12
#define VClassStationCar    13
#define VClassTrailer       14
#define VClassUnique        15

 
Másold be a targyalo, targyalo1 definációját.
Cím: pickup hiba
Írta: Mike. - 2012. Március 19. - 16:25:52
Vagy esetleg a teleportos pickupot bele kellene rakni az fs-be és úgy megpróbálni.
Én CP-vel jártam így, hogy összekeveredett a kettõ.
Cím: pickup hiba
Írta: N@rbirock - 2012. Március 19. - 16:30:20
new targyalo;
new targyalo1;
targyalo = CreatePickup(1210,37,358.798461,2483.353027,16.484375,-1);
targyalo1 = CreatePickup(1210,37,2324.4031,-1149.5435,1050.7101,-1);
Cím: pickup hiba
Írta: Flash - 2012. Március 19. - 19:45:24
Idézetet írta: N@rbirock date=1332171020\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"18745\" data-ipsquote-contentclass=\"forums_Topic

new targyalo;
new targyalo1;
targyalo = CreatePickup(1210,37,358.798461,2483.353027,16.484375,-1);
targyalo1 = CreatePickup(1210,37,2324.4031,-1149.5435,1050.7101,-1);

 

ja, elfelejtettem hogy csak változó kell és nem defináció.. xd
Hát akkor nincs ötletem :/
Cím: pickup hiba
Írta: N@rbirock - 2012. Március 19. - 21:00:36
de nekem kéne csinálni valamitmert nem tudok bemeni a házamba
Cím: pickup hiba
Írta: N@rbirock - 2012. Március 22. - 15:33:54
átírtam dinamycpickup-ra de igy se megy
vajon nem ez a baj [pawn]   DisableInteriorEnterExits();[/pawn]
Cím: pickup hiba
Írta: Flash - 2012. Március 22. - 15:34:57
Idézetet írta: N@rbirock date=1332426834\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"18745\" data-ipsquote-contentclass=\"forums_Topic
átírtam dinamycpickup-ra de igy se megy
vajon nem ez a baj
   DisableInteriorEnterExits();

 

Nem, mert az az, hogy nem jelennek meg a sárga nyilak a házak eltt és nem tudsz bemenni a házakba.