Pickup streamer is not streaming at all.
#1

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]);
Reply
#2

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

Nice
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)