SA-MP Forums Archive
1 Pickup doens't show, but the other does??? How to fix? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: 1 Pickup doens't show, but the other does??? How to fix? (/showthread.php?tid=87276)



1 Pickup doens't show, but the other does??? How to fix? - stieben - 19.07.2009

Hello,

I have this code:
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == HellPickup)
    {
      GameTextForPlayer(playerid, "~r~You Are In Hell!!! HAHAH!", 7000, 5);
      MoveDynamicObject(HellDeur, 390.037781, 394.705811, 15221.083984, 1);
      SetPlayerWeather(playerid, 21);
      GameTextForPlayer(playerid, "~g~INFO~n~~w~Try To Hit The Barrel", 5000, 5);
    }
    else if(pickupid == BarrelJumpInfo)
    {
      GameTextForPlayer(playerid, "~g~INFO~n~~w~Try To Hit The Barrel", 5000, 5);
    }
    return 1;
}
Ok, BarrelJumpInfo shows, HellPickup Doesn't show.


On Top
pawn Код:
new BarrelJumpInfo;

new HellPickup;
OnGameModeInIt
pawn Код:
BarrelJumpInfo = CreatePickup(1239, 16, 1486.834351, -1439.052490, 184.249298);
    HellPickup = CreatePickup(1239, 16, 385.595276, 387.092712, 15225.529297);
I get no errors and/or warnings. BarrelJumpInfo shows and works, HellPickup doesn't show.

I don't know what to do anymore please help


Re: 1 Pickup doens't show, but the other does??? How to fix? - Vince - 19.07.2009

Are you sure that are the right coords? A Z of 15000 is a bit high, don't you think?


Re: 1 Pickup doens't show, but the other does??? How to fix? - stieben - 19.07.2009

doesn't it show because it's too high But I have also a vehicle near there and that one does show.


Re: 1 Pickup doens't show, but the other does??? How to fix? - stieben - 19.07.2009

What is the maximum height of pickups then?


Re: 1 Pickup doens't show, but the other does??? How to fix? - MarqueZ92 - 19.07.2009

Try using it like this:

pawn Код:
new BarrelJumpInfo;
new HellPickup;
Under OnGameModeInit:

pawn Код:
BarrelJumpInfo = CreatePickup(1239, 16, 1486.834351, -1439.052490, 184.249298);
HellPickup = CreatePickup(1239, 16, 385.595276, 387.092712, 15225.529297);
and then:

pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == HellPickup)
    {
      GameTextForPlayer(playerid, "~r~You Are In Hell!!! HAHAH!", 7000, 5);
      MoveDynamicObject(HellDeur, 390.037781, 394.705811, 15221.083984, 1);
      SetPlayerWeather(playerid, 21);
      GameTextForPlayer(playerid, "~g~INFO~n~~w~Try To Hit The Barrel", 5000, 5);
    }
   
    if(pickupid == BarrelJumpInfo)
    {
      GameTextForPlayer(playerid, "~g~INFO~n~~w~Try To Hit The Barrel", 5000, 5);
    }
    return 1;
}



Re: 1 Pickup doens't show, but the other does??? How to fix? - stieben - 19.07.2009

Ok, I'll try