OnPlayerPickuppickup problem
#1

Hi a few days ago I learned to do all their work OnPlayerPickuppickup but when I go to the door and left the pickup disappears here's what I did.

Код:
new info1;
new info2;

	info1 = CreatePickup(1318, 23, 1488.5765,-1771.6222,18.7958, -1);
	info2 = CreatePickup(1318, 23, 387.3406,175.1888,1008.3828, -1);

        if(pickupid == info1)
        {
             SetPlayerPos(playerid, 388.6500,173.9088,1008.3828);
             SetPlayerInterior(playerid, 3);
	}
        if(pickupid == info2)
        {
             SetPlayerPos(playerid, 1488.6108,-1767.5939,18.7958);
             SetPlayerInterior(playerid, 0);
	}
    }
    return 1;
Reply
#2

PickupTypes.

Edit: Just noticed PickupType 23 isn't meant to vanish, this is a 0.3 bug which is fixed in 0.3d which should be out soon. (As from your post I assume the pickup inside the interior vanishes.)
Reply
#3

I tried with 1 and 23 and the effect is the same one.
Reply
#4

Код:
	info1 = CreatePickup(1318, 2, 1488.5765,-1771.6222,18.7958, -1);
	info2 = CreatePickup(1318, 2, 387.3406,175.1888,1008.3828, -1);
try to put it like this..
Reply
#5

the effect is again the same one
Reply
#6

I fixed the problem was there destroypickup thank everyone who tried to help me
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)