SA-MP Forums Archive
CreateDynamicPickup - Diffrent returns - 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: CreateDynamicPickup - Diffrent returns (/showthread.php?tid=444665)



CreateDynamicPickup - Diffrent returns - Leenert - 17.06.2013

Hey guys.
I have a problem with the function CreateDynamicPickup by incognito.

First I use this, to save the created pickupid in an array:
Code:
BauteilInfo[pickupid][PickupID] = CreateDynamicPickup(1576, 1, X, Y, Z+1, -1, -1, -1, 100.0);
This works fine - the result is e.g. 98.

Just a few lines later I use:
Code:
PanzerungInfo[pickupid][PickupID] = CreateDynamicPickup(1114, 1, X, Y, Z+1, -1, -1, -1, 100.0);
But everytime the return of the second function is 1 - even if the created pickup has the id 102. I mean - it's the same function, isn't it....

Hope somebody can help me