pickup help
#1

when the player goes into the pickup, the text does not disply (the code for that pickup is not working)

http://pastebin.com/m37c62751
Reply
#2

https://sampwiki.blast.hk/wiki/Template:TypesOfPickups

Quote:

1 - Not pickupable, exist everytime.

Reply
#3

Change
pawn Код:
empire = CreatePickup(1274,1,-2051.0269,459.2587,35.1719);
to
pawn Код:
empire = CreatePickup(1274,2,-2051.0269,459.2587,35.1719);
Reply
#4

Why would you wan't a pickup that couldn't be picked up? lol
Reply
#5

it needs to always be there, you need to be in the pickup to /enter.

plus, the text will not pop up when in the pickup
Reply
#6

19 - Pickupable, but has no effect
Reply
#7

Код:
public OnPlayerPickupPickup(playerid, pickupid)

{

    if (pickupid == empire)

    {

    GameTextForPlayer(playerid,"/enter",5000,5);

    }

 

    return 1;

}
ok, i found the right pickup tpye, but the GameText will not show when the player is in the pickup.
Reply
#8

What type are you using?
Reply
#9

23 - Pickupable, but doesn't disappear on pickup.
Reply
#10

Try this and tell us what it prints.

public OnPlayerPickupPickup(playerid, pickupid)
{
printf("%d : %d",pickupid,empire);
return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)