Assigning an ID to a pickup
#1

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.
Reply
#2

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);
Reply
#3

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.
Reply
#4

interesting, didnt know that... does CreateObject return ID?
Reply
#5

Quote:
Originally Posted by SA-MP Wiki
CreateObject
Returns The object id of the newly created object.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)