SA-MP Forums Archive
Pickup's refuse to show - 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: Pickup's refuse to show (/showthread.php?tid=384555)



Pickup's refuse to show - iTorran - 12.10.2012

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.


Re: Pickup's refuse to show - MrReBzz - 12.10.2012

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


Re: Pickup's refuse to show - iTorran - 12.10.2012

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


Re: Pickup's refuse to show - iTorran - 15.10.2012

Bump


Re: Pickup's refuse to show - Randy More - 15.10.2012

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.


Re : Pickup's refuse to show - yusei - 15.10.2012

try to use :

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


Re: Re : Pickup's refuse to show - iTorran - 15.10.2012

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



Re : Pickup's refuse to show - yusei - 15.10.2012

Код:
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);



Re: Pickup's refuse to show - iTorran - 15.10.2012

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


Re: Pickup's refuse to show - Jessyy - 15.10.2012

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