SA-MP Forums Archive
Pickups spawn at the lower ground - 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: Pickups spawn at the lower ground (/showthread.php?tid=410109)



Pickups spawn at the lower ground - maiky1499 - 24.01.2013

Hi, I have a problem with CreatePickup.
I'm using a stock, stock LoadPickups():
When I'm creating a pickup with - CreatePickup everything works fine, if it's on the ground.
When I'm using the same format, everything the same besides the XYZ that above a bridge, it will create the pickup on the water below.
...Why? how to make the pickup on the same Z I wrote?


Re: Pickups spawn at the lower ground - DanLore - 24.01.2013

Are you using floats? Floats allow for precise positioning, and could be causing the difference when the points are reloaded.


Re: Pickups spawn at the lower ground - maiky1499 - 24.01.2013

Yep, I'm using floats, when changing the Z the pickup still will stay at the same Z he was.


Re: Pickups spawn at the lower ground - maiky1499 - 25.01.2013

Anyone?


Re: Pickups spawn at the lower ground - ikey07 - 25.01.2013

Somewhere between save and load is something wrong, if you dont want to investigate it just add +1.0 orso at Z coord, maybe you can show load and save script parts?


Re: Pickups spawn at the lower ground - maiky1499 - 25.01.2013

Not works and the stocks are okay for sure.


Re: Pickups spawn at the lower ground - maiky1499 - 30.01.2013

Help please


Re: Pickups spawn at the lower ground - maiky1499 - 31.01.2013

hello


Re: Pickups spawn at the lower ground - maiky1499 - 02.02.2013

HELP