[HELP]Drugs Delivery
#1

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
Reply
#2

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

OnPlayerPickUpPickup
Reply
#3

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

-nevermind-

Reply
#5

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?
Reply
#6

pawn Код:
new coordsstring[128];
Reply
#7

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)