Same Placeses!!!
#1

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

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

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

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

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

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

heeeeeeeeeeelp
Reply
#8

Код:
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?
Reply
#9

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

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?!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)