Assigning an ID to a pickup - 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: Assigning an ID to a pickup (
/showthread.php?tid=86872)
Assigning an ID to a pickup -
ilikepie2221 - 16.07.2009
How do I assign an ID to a pickup? I've tried
Код:
new pickupID1;
pickupID1=CreatePickup(1239,23,607.8970,-1459.5481,14.3952);
But that doesn't work.
Re: Assigning an ID to a pickup -
Khelif - 16.07.2009
maybe this..
Код:
new pickupID[2];
pickupID[0] = CreatePickup(1239,23,607.8970,-1459.5481,14.3952);
pickupID[1] = CreatePickup(1221,23,607.8970,-1459.5481,14.3952);
Re: Assigning an ID to a pickup -
Correlli - 16.07.2009
Quote:
Originally Posted by SA-MP Wiki
CreatePickup
This function does exactly the same as AddStaticPickup, except it returns a pickup ID which can be used to destroy it afterwards.
|
CreatePickup already returns an ID.
Re: Assigning an ID to a pickup -
Khelif - 16.07.2009
interesting, didnt know that... does CreateObject return ID?
Re: Assigning an ID to a pickup -
Correlli - 16.07.2009
Quote:
Originally Posted by SA-MP Wiki
CreateObject
Returns The object id of the newly created object.
|