SA-MP Forums Archive
Pickup doesn't 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 doesn't show (/showthread.php?tid=314079)



Pickup doesn't show - Sascha - 28.01.2012

Hi guys,
there might be a stupid mistake that I didn't notice, but I can't imagine why it doesn't work...

pawn Код:
public OnGameModeInit()
{
  CreatePickup(1239, 23, 5430.4668, 3482.0422, 7006.1318, -1);
  return 1;
}
This pickup doesn't appear on the server.. at least I can't see it..
(the coords should be correct, as I checked them several times)
This is the only pickup I'm using, so I shouldn't have passed the pickup limit yet...
Any idea?


Re: Pickup doesn't show - Konstantinos - 28.01.2012

Edit: I understood wrong.


Re: Pickup doesn't show - Sascha - 28.01.2012

My problem is not that it doesn't disappear (it shouldn't), but that it does not appear at all..


Re: Pickup doesn't show - Snowman12 - 28.01.2012

do you use any form of streamer? If so which one?


Re: Pickup doesn't show - Sascha - 28.01.2012

yea.. streamer plugin, although I don't want to stream the pickups, so I used the default sa-mp code


Re: Pickup doesn't show - Konstantinos - 28.01.2012

Hmm, I might be wrong, but if you are using Incognito's Streamer, you should Replace the CreateObject to CreateDynamicObject as you already know and I think it has to replace the CreatePickup to CreateDynamicPickup to show the pickup.


Re: Pickup doesn't show - Sascha - 28.01.2012

If I wanted to stream the pickup I had too, although I don#t want to stream it, but use it the default sa-mp way.

edit: when using CreateDynamicPickup it doesn't work either btw


Re: Pickup doesn't show - Rimeau - 28.01.2012

Are you really sure your Z-coordinate ( 7006.1318 ) is right? That's higher than the map is wide...

You can also check what CreatePickup returns (should be 0)


Re: Pickup doesn't show - Konstantinos - 28.01.2012

It's nessacary, you can't have the plugin for stream objects and not stream pickups.
One solution there is, make it as FS without using Incognito's Streamer and I believe you are ok.


Re: Pickup doesn't show - Sascha - 28.01.2012

Yes I am sure, custom map...

@dwane: it's not.. it just allows you to stream objects, but doesn't disable the CreateObject or other sa-mp default functions. You can even stream some objects while not streaming other objects