Weird error pickup not showing - 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: Weird error pickup not showing (
/showthread.php?tid=341153)
Weird error pickup not showing -
davve95 - 09.05.2012
Hi!
I got a problem.. I've done a pickup to a interior but it's a problem the pickup won't show..
I've try with 0- on the end etc can't rember what it's named lol... And I have
aslo tryd with tryd with diffrent pickup types..
Here is my code:
pawn Код:
CreatePickup(1318,1,-1411.6375,7.0938,15.4421-1); //For pickup to prison
Re: Weird error pickup not showing -
JaTochNietDan - 09.05.2012
You are omitting the virtual world argument altogether, which is probably an issue.
https://sampwiki.blast.hk/wiki/CreatePickup
I would suggest adding the final argument as -1 like it says on the SA-MP documentation to make it show in all virtual worlds, unless you want to limit that too. Just remember that virtual worlds have nothing to do with interiors.
pawn Код:
CreatePickup(1318, 1, -1411.6375,7.0938, 15.4421, -1); //For pickup to prison
Also you were doing a subtraction on the float at the end? I don't know why, I assume it was a mistake.
Re: Weird error pickup not showing -
davve95 - 09.05.2012
Quote:
Originally Posted by JaTochNietDan
You are omitting the virtual world argument altogether, which is probably an issue.
https://sampwiki.blast.hk/wiki/CreatePickup
I would suggest adding the final argument as -1 like it says on the SA-MP documentation to make it show in all virtual worlds, unless you want to limit that too. Just remember that virtual worlds have nothing to do with interiors.
pawn Код:
CreatePickup(1318, 1, -1411.6375,7.0938, 15.4421, -1); //For pickup to prison
Also you were doing a subtraction on the float at the end? I don't know why, I assume it was a mistake.
|
Thanks alot!

.. I don't know that thing to I aslo think it was a mistake. Thanks alot like said!.