Using binarysearch instead of for loop doesnt work
#7

Quote:
Originally Posted by faxxe
Посмотреть сообщение
I want to add other pickup types and a pickup streamer so i guess it could be useful in the feature.
Ah okay, I thought everyone who exceed the sa-mp limit uses the streamer plugin nowadays

Because otherwise if you stay under the limit you simply could have done
PHP код:
new gPickupType[MAX_PICKUPS];
// GenerateRandomPickup
pickupid CreatePickup(modelid,type,rx1,ry2,rz3,virtualworld);
// some security checks to check that pickupid is valid
gPickupType[pickupid] = MONEY_TYPE;
// OnPlayerPickUpPickup
switch(gPickupType[pickupid]) 
Reply


Messages In This Thread
Using binarysearch instead of for loop doesnt work - by faxxe - 16.03.2017, 13:58
Re: Using binarysearch instead of for loop doesnt work - by NaS - 16.03.2017, 14:17
Re: Using binarysearch instead of for loop doesnt work - by faxxe - 16.03.2017, 14:59
Re: Using binarysearch instead of for loop doesnt work - by faxxe - 16.03.2017, 15:02
Re: Using binarysearch instead of for loop doesnt work - by Nero_3D - 16.03.2017, 16:05
Re: Using binarysearch instead of for loop doesnt work - by faxxe - 16.03.2017, 16:31
Re: Using binarysearch instead of for loop doesnt work - by Nero_3D - 16.03.2017, 17:20

Forum Jump:


Users browsing this thread: 1 Guest(s)