SA-MP Forums Archive
Pickup streamer is not streaming at all. - 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: Pickup streamer is not streaming at all. (/showthread.php?tid=136922)



Pickup streamer is not streaming at all. - Carlton - 27.03.2010

Hello, this is my 3rd day developing a pickup streamer i've been working on. I've finished everything, but now i'm stuck at one spot! The pickup streamer creates the pickup but doesn't delete the pickup when the user is out of range. The code is below, please take a look.

Code removed, indentation didn't work out.
The new code link is found here: http://pastebin.com/nukP0Ji4
If you can't read what the 2 lines say ( 6 & 7 ). Here it's flat out.
pawn Код:
if(IsPlayerInRangeOfPoint(playerid, PickupStreamer[id][Range], PickupStreamer[id][X], PickupStreamer[id][Y], PickupStreamer[id][Z])) {
PickupStreamer[id][PID] = CreatePickup(PickupStreamer[id][Model], PickupStreamer[id][Type], PickupStreamer[id][X], PickupStreamer[id][Y], PickupStreamer[id][Z], PickupStreamer[id][VirtualWorld]);



Re: Pickup streamer is not streaming at all. - Carlton - 27.03.2010

Fixed, too everyone that needs help here's a suggestion,

- When you wan't get help, you feel not as great when you fix it yourself. You feel accomplished, and successful when you fix it yourself. I feel great because I fixed it myself

Anyway, this is what happened, while it looped it kept creating the pickup over and over, and the pickup id was changing causing the streamer to delete invalid pickups.

Released here: http://forum.sa-mp.com/index.php?top....msg964986#new


Re: Pickup streamer is not streaming at all. - ¤Adas¤ - 27.03.2010

Nice