CreatePickup
#1

Hey guys, can someone look what im doing wrong:

pawn Код:
new drift1;
new drift2;
new drift3;
new drift4;

drift1 = CreatePickup (1318, 14, -2685.4143,1435.3947,7.1016, -1);
drift2 = CreatePickup (1318, 14, -2679.8274,1437.0120,7.1016, -1);
drift3 = CreatePickup (1318, 14, -2675.3167,1437.6591,7.0938, -1);
drift4 = CreatePickup (1318, 14, -2670.4824,1439.7909,7.1016, -1);
When i compile, and go to this place, it doesnt show the arrow (ID 131 And it doesnt give any errors neither

Hope you guys can find it
~Wesley
Reply
#2

so you put
pawn Код:
//This at the top of your script
new drift1;
new drift2;
new drift3;
new drift4;

//and where did you put this ??
drift1 = CreatePickup (1318, 14, -2685.4143,1435.3947,7.1016, -1);
drift2 = CreatePickup (1318, 14, -2679.8274,1437.0120,7.1016, -1);
drift3 = CreatePickup (1318, 14, -2675.3167,1437.6591,7.0938, -1);
drift4 = CreatePickup (1318, 14, -2670.4824,1439.7909,7.1016, -1);
And also make sure your Coordinate are right
Reply
#3

pawn Код:
--Top of script--
new drift1;
new drift2;
new drift3;
new drift4;

public OnGameModeInit()
drift1 = CreatePickup (1318, 14, -2685.4143,1435.3947,7.1016, -1);
drift2 = CreatePickup (1318, 14, -2679.8274,1437.0120,7.1016, -1);
drift3 = CreatePickup (1318, 14, -2675.3167,1437.6591,7.0938, -1);
drift4 = CreatePickup (1318, 14, -2670.4824,1439.7909,7.1016, -1);
And yes, the Coцrdinates are right, checked it twice with "Editor"
Reply
#4

Quote:
Originally Posted by Wesley221
Посмотреть сообщение
pawn Код:
--Top of script--
new drift1;
new drift2;
new drift3;
new drift4;

public OnGameModeInit()
drift1 = CreatePickup (1318, 14, -2685.4143,1435.3947,7.1016, -1);
drift2 = CreatePickup (1318, 14, -2679.8274,1437.0120,7.1016, -1);
drift3 = CreatePickup (1318, 14, -2675.3167,1437.6591,7.0938, -1);
drift4 = CreatePickup (1318, 14, -2670.4824,1439.7909,7.1016, -1);
And yes, the Coцrdinates are right, checked it twice with "Editor"
Is world -1 for all worlds? otherwise set it to 0, Also check : https://sampwiki.blast.hk/wiki/PickupTypes
Reply
#5

Yeah, its for every world

Also i know it's just for cars; thats what i want
Reply
#6

Everything looks fine there is one more thing if you have too many pickups you would need a streamer
Reply
#7

What is the max of pickups, and what is a streamer?

Edit:
Found a steamer (MidoStream), if i put all the files where it belongs, i can just make unlimited Pickups?

Another Edit:
Found out that MidoStream is just for objects, anyone knows a Streamer for pickups?

Thanks!
Reply
#8

You can use THIS Streamer Plugin v2.5.2 it can streame PickUps

And the Max_Pickups are: 2048 you can see it HERE
but i dont think you would reache that Amount
Reply
#9

Well, i just installed it; and checked the location of the pickups i made

They're still not showing up..
Reply
#10

Somehow pickups do not show far in the sea. I know this problem and it's not your script but a SA-MP bug
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)