SA-MP Forums Archive
OnPlayerPickUpPickup does not work - 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: OnPlayerPickUpPickup does not work (/showthread.php?tid=244064)



OnPlayerPickUpPickup does not work - DartakousLien - 26.03.2011

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


Re: OnPlayerPickUpPickup does not work - Mike Garber - 26.03.2011

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.


Re: OnPlayerPickUpPickup does not work - blackwave - 26.03.2011

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.


Re: OnPlayerPickUpPickup does not work - MadeMan - 26.03.2011

Are you using CreatePickup or AddStaticPickup?

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


Re: OnPlayerPickUpPickup does not work - DartakousLien - 26.03.2011

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