Pickup's refuse to show
#1

I am scripting a few pickups on a server..
I started off testing my code on mainland, that all went fine, pickups shown, etc.
But when I moved the pickup coordinates to an island (which is where they need to be)
the pickup's stopped showing completely, I have tried everything I can think of but they never show where they should!
Does anyone know why this could be?

pawn Код:
CreatePickup(objectid, 1, 6870.45, -1868.23, 11.2848, -1);
(objectid is defined further up but that's not the problem either)

I have tried changing the Z coord and stuff, they all work fine on mainland just not the island.
Reply
#2

Did U add Anything On OnPlayerPickUpPickUp? If Yes Thn Please Show Us The Code
Reply
#3

Not even using that callback, just creating the pickup for now.
Reply
#4

Bump
Reply
#5

Check if you have a different virtual world for that island, if so, make sure you replace the "-1" in the end of the function.
Reply
#6

try to use :

new pick01;
pick01 = CreatePickup(objectid, 1, 6870.45, -1868.23, 11.2848, -1);
Reply
#7

Quote:
Originally Posted by yusei
Посмотреть сообщение
try to use :

new pick01;
pick01 = CreatePickup(objectid, 1, 6870.45, -1868.23, 11.2848, -1);
This is my full code:
pawn Код:
new house = 1272; // theres actually a ternary operator here but i'll just put this for you
Pickup = CreatePickup(house, 1, 6870.45, -1868.23, 11.2848, -1);
Reply
#8

Код:
new Pickup; // Create a variable to store the pickup ID out of  OnGameModeInit

new house = 1272; 
Pickup = CreatePickup(house, 1, 6870.45, -1868.23, 11.2848, -1);
Reply
#9

That's not the problem as like I said, it worked on mainland .. and the most important part, I'm already doing that.
Reply
#10

I recommend you to use this plugin https://sampforum.blast.hk/showthread.php?tid=102865 for this kinds of stuff ...
Код:
CreateDynamicPickup(modelid, type, Float:x, Float:y, Float:z, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 100.0);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)