Assigning a pickup and then reading the ID - 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)
+--- Thread: Assigning a pickup and then reading the ID (
/showthread.php?tid=456526)
Assigning a pickup and then reading the ID -
thimo - 06.08.2013
Okay so at a loading point i assign my pickup like this
pawn Код:
AClubData[i][PickUpID] = CreateDynamicPickup(1273, 1, AClubData[i][ClubX], AClubData[i][ClubY], AClubData[i][ClubZ], -1);
But now how do i retrieve the id for OnPlayerPickupPickup?
Re: Assigning a pickup and then reading the ID -
GWMPT - 06.08.2013
https://sampwiki.blast.hk/wiki/OnPlayerPickUpPickup
That should explain everything to you.
Re: Assigning a pickup and then reading the ID -
McLuhan - 06.08.2013
PHP код:
for(new i = 0; i < value; i++)
{
if(pickupid == AClubData[i][PickUpID])
{
// code
break;
}
}