Problems with my pickups
#1

Hey, I got a problem with my pickups, They dont spawn. I did it correctly and it didnt compile with any errors.

This is the pickups on ongamemodeinit:
pawn Код:
iHouse1 = CreateDynamicPickup(1318, 23, 7490.5503, -103.2598, 65.0940);
iHouse2 = CreateDynamicPickup(1318, 23, 7484.1494, -123.5796, 65.0940);
iHouse3 = CreateDynamicPickup(1318, 23, 7503.4702, -108.2560, 65.0940);
iHouse4 = CreateDynamicPickup(1318, 23, 7507.2280, -90.8062, 65.2412);
iHouse5 = CreateDynamicPickup(1318, 23, 7482.1206, -64.1295, 65.0940);
iHouse6 = CreateDynamicPickup(1318, 23, 7460.9644,- 112.6029, 65.0940);
Is it maybe bcz i am out to far in the sea?

If so, Is there any way to fix this?
Reply
#2

Move the pickups closer to San Andreas
Reply
#3

I cant, Bcz the map is out far in the sea
Reply
#4

Try CreatePicup.
Код:
// On The Top
new iHouse1;
new iHouse2;
new iHouse3;
new iHouse4;
new iHouse5;
new iHouse6;

// On gamemodeinit
iHouse1 = CreatePickup(1318, 23, 7490.5503, -103.2598, 65.0940,-1);
iHouse2 = CreatePickup(1318, 23, 7484.1494, -123.5796, 65.0940,-1);
iHouse3 = CreatePickup(1318, 23, 7503.4702, -108.2560, 65.0940,-1);
iHouse4 = CreatePickup(1318, 23, 7507.2280, -90.8062, 65.2412,-1);
iHouse5 = CreatePickup(1318, 23, 7482.1206, -64.1295, 65.0940,-1);
iHouse6 = CreatePickup(1318, 23, 7460.9644, -112.6029, 65.0940,-1);
// Then in OnPlayerPickUpPickup
if(pickupid == iHouse1) {                // If Player picups that picup 
GivePlayerMoney(playerid,10000);    // What he will get when he picup it
}
// and for all others if(pickupid == .......
Reply
#5

Already did with CreatePickup, Dont work either
Reply
#6

Move the map closer... only way I'm afraid, lol.
Reply
#7

Or use an object instead. Then just create a custom callback to check if the player is near the object.
Reply
#8

What object should i use then lol :P
Reply
#9

Haha the same 1318 ?
Reply
#10

Quote:
Originally Posted by Fj0rtizFredde
Посмотреть сообщение
Or use an object instead. Then just create a custom callback to check if the player is near the object.
Ha, that's ingenious. Never thought of that :P
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)