OnPlayerPickUpPickup does not work
#1

OnPlayerPickUpPickup does not work.
simply does not work.
someone can help me?
please

example if I use it

in OnGameModeInit

pickup1 = lalala


continuing

pawn Код:
public OnPlayerPickupPickup(playerid,pickupid)
{
    if(pickupid == pickup1)
    {
         SendClientMessage(playerid,COLOR_BLUE,"Cool");
    }
    return 1;
}
so if you are not working
even then not in any way
Reply
#2

Here's example of usage: https://sampwiki.blast.hk/wiki/OnPlayerPickUpPickup
If you're not doing it exactly like that, you are doing it wrong.
Reply
#3

Maybe some mistake on callback order. I had same problem with the order and had to put callback as were on a standart new pwn file.
Reply
#4

Are you using CreatePickup or AddStaticPickup?

AddStaticPickup doesn't return id, so you should use CreatePickup.
Reply
#5

neither one thing nor the other, I was using the system "SpikeStrip" and it worked, but crashed, just a moment's notice
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)