SA-MP Forums Archive
Same Placeses!!! - 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: Same Placeses!!! (/showthread.php?tid=633631)



Same Placeses!!! - Man43 - 04.05.2017

Hello guyz, there a problem... im making a pickups in same placeses so After i enter the pickup i'll spawned in another locations so i mean's After Entering Pickpus i have 2places there so i want make it spawns in the pickups


Код:
    Ammu1[2] = CreateDynamicPickup(19135, 2, 315.6982,-143.6353,999.6016, -1, -1, -1, 100.0);
Ammu1[1] = CreateDynamicPickup(19135, 2, 315.6982,-143.6353,999.6016, -1, -1, -1, 100.0);
and here the pickups. its differnts. but i dont know Why i'll spawned in random spawns.

In the Top script :-

new Ammu1[5];

PHP код:
public OnPlayerPickUpDynamicPickup(playeridpickupid)
{
    if(
pickupid == Ammu1[1]) //Ammunation Com-alot
    
{
        
SetPlayerPos(playerid2156.5938,943.8235,10.8203);
        
SetPlayerInterior(playerid0);
    }
        if(
pickupid == Ammu1[2]) //Ammunation OLD VERNTERS STRIP
    
{
        
SetPlayerPos(playerid2537.3750,2084.0583,10.8203);
        
SetPlayerInterior(playerid0);
    }
     return 
1;

// So what wrong here?


Re: Same Placeses!!! - Toroi - 04.05.2017

You can't be in two places at the same time if that's what you are seeking for.

What my common sense says is that, as both pickups are in the same place sometime the server first processes one of the pickup and other times the other one as first, that's why you're experiencing 'random' spawns between these two locations.


Re: Same Placeses!!! - Man43 - 04.05.2017

So You mean i have to change the Pickup EXIT Place! to be differnt.


Re: Same Placeses!!! - Toroi - 04.05.2017

Please explain carefully what are you trying to accomplish, I can't understand.


Re: Same Placeses!!! - Man43 - 04.05.2017

i cant explain you... lol.. Can you join this server? for told you? Check your pm!


Re: Same Placeses!!! - Man43 - 04.05.2017

Hello again, im trying to change the pickups Locations But After i finished it i got This after i entering the Store XD



How to i can make it Only 1 Pickups by any store.

Код:
Burger1[1] = CreateDynamicPickup(19135, 2, 362.5479,-74.7730,1001.5078, -1, -1, -1, 100.0);
Burger1[2] = CreateDynamicPickup(19135, 2, 363.2184,-75.5130,1001.5078, -1, -1, -1, 100.0);



Re: Same Placeses!!! - Man43 - 04.05.2017

heeeeeeeeeeelp


Re: Same Placeses!!! - Toroi - 04.05.2017

Код:
Burger1[1] = CreateDynamicPickup(19135, 2, 362.5479,-74.7730,1001.5078, -1, -1, -1, 100.0);
Burger1[2] = CreateDynamicPickup(19135, 2, 363.2184,-75.5130,1001.5078, -1, -1, -1, 100.0);
You're creating 2 pickups as you showed us from the above code, however, you want only one. What should you do?


Re: Same Placeses!!! - Vince - 04.05.2017

If you create two pickups literally 1 meter apart from each other then obviously they will display exactly the way they do in the screenshot. I still have absolutely no idea what you're trying to accomplish. You're not explaining it properly.


Re: Same Placeses!!! - Man43 - 04.05.2017

ok i'll expalin everything now.

READ:- I Need help with :-

Im creating many stores with differnts interiors so after i creating 2Burgers with Same Interiors After I Pickup the Objects i'll exit to random Player Exiting So.

How should i fix it? Making Store Burger only 1pickup By Store.

So, Burgers i dont want Many pickups there only 1Pickups for Exiting. are you understand me now?!