SA-MP Forums Archive
[HELP]Drugs Delivery - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP]Drugs Delivery (/showthread.php?tid=80552)



[HELP]Drugs Delivery - joeri55 - 04.06.2009

Hello guys,

I've got a Drugs Delivery FS from the forums and I want to change something.
I want that if you run over the "I" sign at the drugs dropoff and buydrugs that you can see how much drugs there in the drugshouse is.

If someone knows how to make it or knows a good tutorial for this please comment then.

The Drugs Delivery script


Re: [HELP]Drugs Delivery - lol2112 - 04.06.2009

I think this is what you might be after...

OnPlayerPickUpPickup


Re: [HELP]Drugs Delivery - joeri55 - 05.06.2009

No.. I want to see how much crack there is in the drugshouse.


Re: [HELP]Drugs Delivery - efeX - 05.06.2009

-nevermind-




Re: [HELP]Drugs Delivery - joeri55 - 05.06.2009

http://pastebin.com/m4810f421

C:\Documents and Settings\Joeri\Bureaublad\Drugs\drugs.pwn(447) : error 017: undefined symbol "coordsstring"
C:\Documents and Settings\Joeri\Bureaublad\Drugs\drugs.pwn(447) : error 017: undefined symbol "coordsstring"
C:\Documents and Settings\Joeri\Bureaublad\Drugs\drugs.pwn(447) : warning 215: expression has no effect
C:\Documents and Settings\Joeri\Bureaublad\Drugs\drugs.pwn(44 : error 017: undefined symbol "coordsstring"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


3 Errors.


How can I make a coordsstring work?


Re: [HELP]Drugs Delivery - Correlli - 05.06.2009

pawn Код:
new coordsstring[128];



Re: [HELP]Drugs Delivery - lol2112 - 05.06.2009

Quote:
Originally Posted by joeri55
No.. I want to see how much crack there is in the drugshouse.
Yes well done. So you'll be wanting to use OnPlayerPickupPickup as I said.

Use CreateObject on the id 1239. Place this in the drugs place. Then use OnPlayerPickupPickup on the id of the object you created and ask it to give a message showing how many drugs are in the drugs house.

And what do you mean how can you make a coordsstring work? There's no such thing as one. You have to define it yourself...as it clearly says in your errors. Use new coordsstring[length of the string you want] somewhere.