[Include] [INC] Carlton's Pickup Streamer - 23 functions | Smooth streaming.
#1

- Quick Chat -

Hello everyone, this is my 4th release, and i've been working on this streamer for about 3-4 days. I just wan't say something i've learned:

- Quick paragraph everyone should read -

I decided to quit making this project because I couldn't get it to work. I thought it was impossible. Then, I decided to go back to this project and do it again. I decided to not give up on what i'm doing. So the thing i'm saying is: "You can make anything you want, if you try your best"

Anyway, this streamer is very useful because of the amount of functions in it. Here's a list of the functions
- Functions -
Quote:
Originally Posted by The Pickup Streamer
/**
*
* Carlton's Pickup Streamer.
*
* @Author - Carlton
* @Copyright - 2010
* @Contact - Carltonr88@gmail.com | MSN & EMAIL
*
* Functions
* native IsAValidStreamedPickup(id);
* native DestroyStreamedPickup(id);
* native CreateStreamedPickup(id,ModelID,type,Float,Float :y,Float:z,VW,Float:range);
* native ToggleStreamedPickup(id, bool:Toggle);
* native ChangeStreamedPickupPos(id, Float, Float:y, Float:z);
* native ChangeStreamedPickupRange(id, Float:range);
* native ChangeStreamedPickupVW(id, VW);
* native ChangeStreamedPickupType(id, type);
* native ChangeStreamedPickupModel(id, ModelID);
* native OnPlayerEnterStreamedPickup(playerid, id);
* native OnPickupStreamerInit(playerid);
* native OnPickupStreamerExit(playerid);
* native ReloadStreamedPickups(playerid);
* native CountStreamedPickups();
* native DestroyAllStreamedPickups();
* native DisableAllStreamedPickups();
* native EnableAllStreamedPickups();
* native GetStreamedPickupModel(id);
* native GetStreamedPickupType(id);
* native GetStreamedPickupVW(id);
* native IsPlayerInAnyStreamedPickup(playerid);
* native IsPlayerInStreamedPickup(playerid, pickupid);
* native IsPlayerInStreamedPickupEx(playerid, pickupid); - Use to get range.
*
*/
All of the functions can easily be understood by simply reading the function names. So, I will not explain them one by one like my icon streamer. To install it, read below.

- Installation -
- In OnPlayerConnect add: OnPickupStreamerInit(playerid);
- In OnPlayerDisconnect add: OnPickupStreamerExit(playerid);
- Add
pawn Code:
public OnPlayerPickUpPickup(playerid, pickupid)
{
      if(IsAValidStreamedPickup(pickupid)) {
         OnPlayerEnterStreamedPickup(playerid, pickupid);
      }
      return 1;
}

forward OnPlayerEnterStreamedPickup(playerid, id);
public OnPlayerEnterStreamedPickup(playerid, id) {

}
Anywhere.
- Enjoy.

- Download -
http://pastebin.com/30d9U7gv

Enjoy, report any bugs that you find they will be fixed right away.
Reply
#2

You could use callback hooks to make it more plug 'n play.
Reply
#3

Yes, maybe in the future.
Reply
#4

Code:
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5248) : warning 219: local variable "X" shadows a variable at a preceding level
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5248) : warning 219: local variable "Y" shadows a variable at a preceding level
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5248) : warning 219: local variable "Z" shadows a variable at a preceding level
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5248) : error 035: argument type mismatch (argument 2)
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5249) : warning 213: tag mismatch
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5249) : warning 213: tag mismatch
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5249) : warning 213: tag mismatch
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5248) : warning 203: symbol is never used: "Z"
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5248) : warning 203: symbol is never used: "Y"
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5248) : warning 203: symbol is never used: "X"
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5266) : warning 219: local variable "X" shadows a variable at a preceding level
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5266) : warning 219: local variable "Y" shadows a variable at a preceding level
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5266) : warning 219: local variable "Z" shadows a variable at a preceding level
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5266) : error 035: argument type mismatch (argument 2)
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5267) : warning 213: tag mismatch
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5267) : warning 213: tag mismatch
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5267) : warning 213: tag mismatch
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5266) : warning 203: symbol is never used: "Z"
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5266) : warning 203: symbol is never used: "Y"
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5266) : warning 203: symbol is never used: "X"
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5284) : warning 219: local variable "X" shadows a variable at a preceding level
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5284) : warning 219: local variable "Y" shadows a variable at a preceding level
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5284) : warning 219: local variable "Z" shadows a variable at a preceding level
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5284) : error 035: argument type mismatch (argument 2)
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5285) : warning 213: tag mismatch
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5285) : warning 213: tag mismatch
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5285) : warning 213: tag mismatch
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5284) : warning 203: symbol is never used: "Z"
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5284) : warning 203: symbol is never used: "Y"
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5284) : warning 203: symbol is never used: "X"
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5302) : warning 219: local variable "X" shadows a variable at a preceding level
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5302) : warning 219: local variable "Y" shadows a variable at a preceding level
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5302) : warning 219: local variable "Z" shadows a variable at a preceding level
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5302) : error 035: argument type mismatch (argument 2)
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5303) : warning 213: tag mismatch
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5303) : warning 213: tag mismatch
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5303) : warning 213: tag mismatch
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5302) : warning 203: symbol is never used: "Z"
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5302) : warning 203: symbol is never used: "Y"
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5302) : warning 203: symbol is never used: "X"
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5324) : warning 219: local variable "X" shadows a variable at a preceding level
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5324) : warning 219: local variable "Y" shadows a variable at a preceding level
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5324) : warning 219: local variable "Z" shadows a variable at a preceding level
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5324) : error 035: argument type mismatch (argument 2)
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5325) : warning 213: tag mismatch
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5325) : warning 213: tag mismatch
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5325) : warning 213: tag mismatch
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5324) : warning 203: symbol is never used: "Z"
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5324) : warning 203: symbol is never used: "Y"
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5324) : warning 203: symbol is never used: "X"
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5337) : warning 219: local variable "X" shadows a variable at a preceding level
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5337) : warning 219: local variable "Y" shadows a variable at a preceding level
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5337) : warning 219: local variable "Z" shadows a variable at a preceding level
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5337) : error 035: argument type mismatch (argument 2)
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5338) : warning 213: tag mismatch
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5338) : warning 213: tag mismatch
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5338) : warning 213: tag mismatch
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5337) : warning 203: symbol is never used: "Z"
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5337) : warning 203: symbol is never used: "Y"
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5337) : warning 203: symbol is never used: "X"
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5355) : warning 219: local variable "X" shadows a variable at a preceding level
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5355) : warning 219: local variable "Y" shadows a variable at a preceding level
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5355) : warning 219: local variable "Z" shadows a variable at a preceding level
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5355) : error 035: argument type mismatch (argument 2)
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5356) : warning 213: tag mismatch
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5356) : warning 213: tag mismatch
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5356) : warning 213: tag mismatch
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5355) : warning 203: symbol is never used: "Z"
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5355) : warning 203: symbol is never used: "Y"
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5355) : warning 203: symbol is never used: "X"
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5373) : warning 219: local variable "X" shadows a variable at a preceding level
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5373) : warning 219: local variable "Y" shadows a variable at a preceding level
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5373) : warning 219: local variable "Z" shadows a variable at a preceding level
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5373) : error 035: argument type mismatch (argument 2)
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5374) : warning 213: tag mismatch
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5374) : warning 213: tag mismatch
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5374) : warning 213: tag mismatch
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5373) : warning 203: symbol is never used: "Z"
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5373) : warning 203: symbol is never used: "Y"
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5373) : warning 203: symbol is never used: "X"
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5424) : warning 219: local variable "X" shadows a variable at a preceding level
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5424) : warning 219: local variable "Y" shadows a variable at a preceding level
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5424) : warning 219: local variable "Z" shadows a variable at a preceding level
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5425) : error 035: argument type mismatch (argument 2)
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5426) : warning 213: tag mismatch
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5426) : warning 213: tag mismatch
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5426) : warning 213: tag mismatch
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5424) : warning 203: symbol is never used: "Z"
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5424) : warning 203: symbol is never used: "Y"
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5424) : warning 203: symbol is never used: "X"
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5443) : warning 219: local variable "X" shadows a variable at a preceding level
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5443) : warning 219: local variable "Y" shadows a variable at a preceding level
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5443) : warning 219: local variable "Z" shadows a variable at a preceding level
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(5443) : error 035: argument type mismatch (argument 2)

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.
Reply
#5

Try this:

http://solidfiles.com/d/ad15/download
Reply
#6

thanks but there is now 1 error and some warnings: , solved 1 error now 8 warnings

Code:
C:\Users\Kalvi\Desktop\KFS Fun Server EST\pawno\include\pickupstreamer.inc(213) : warning 219: local variable "range" shadows a variable at a preceding level
C:\Users\Kalvi\Desktop\KFS Fun Server EST\pawno\include\pickupstreamer.inc(225) : warning 213: tag mismatch
C:\Users\Kalvi\Desktop\KFS Fun Server EST\pawno\include\pickupstreamer.inc(248) : warning 219: local variable "range" shadows a variable at a preceding level
C:\Users\Kalvi\Desktop\KFS Fun Server EST\pawno\include\pickupstreamer.inc(250) : warning 213: tag mismatch
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(2365) : warning 219: local variable "ID" shadows a variable at a preceding level
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(2369) : warning 213: tag mismatch
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(2365) : warning 204: symbol is assigned a value that is never used: "ID"
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(11987) : warning 209: function "OnPlayerEnterStreamedPickup" should return a value
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase

Header size:      7180 bytes
Code size:      619520 bytes
Data size:     1001656 bytes
Stack/heap size:   16384 bytes; estimated max. usage: unknown, due to recursion
Total requirements: 1644740 bytes

8 Warnings.
Reply
#7

Code:
Code:
Quote:
Originally Posted by » Titan «
thanks but there is now 1 error and some warnings:
Code:
C:\Users\Kalvi\Desktop\KFS Fun Server EST\pawno\include\pickupstreamer.inc(213) : warning 219: local variable "range" shadows a variable at a preceding level
C:\Users\Kalvi\Desktop\KFS Fun Server EST\pawno\include\pickupstreamer.inc(225) : warning 213: tag mismatch
C:\Users\Kalvi\Desktop\KFS Fun Server EST\pawno\include\pickupstreamer.inc(248) : warning 219: local variable "range" shadows a variable at a preceding level
C:\Users\Kalvi\Desktop\KFS Fun Server EST\pawno\include\pickupstreamer.inc(250) : warning 213: tag mismatch
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(690) : error 017: undefined symbol "playerid"
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(2366) : warning 219: local variable "ID" shadows a variable at a preceding level
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(2370) : warning 213: tag mismatch
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(2366) : warning 204: symbol is assigned a value that is never used: "ID"
C:\Users\Kalvi\Desktop\KFS Fun Server EST\gamemodes\kfsr4v2.pwn(11988) : warning 209: function "OnPlayerEnterStreamedPickup" should return a value
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.

Dude,you are fucking it UP!
All i know that if you have twice same variable name it will give you this...
C:\Users\Kalvi\Desktop\KFS Fun Server EST\pawno\include\pickupstreamer.inc(213) : warning 219: local variable "range" shadows a variable at a preceding level
C:\Users\Kalvi\Desktop\KFS Fun Server EST\pawno\include\pickupstreamer.inc(225) : warning 213: tag mismatch
C:\Users\Kalvi\Desktop\KFS Fun Server EST\pawno\include\pickupstreamer.inc(248) : warning 219: local variable "range" shadows a variable at a preceding level
C:\Users\Kalvi\Desktop\KFS Fun Server EST\pawno\include\pickupstreamer.inc(250) : warning 213: tag mismatch
So the range variable, is TWICE, in you script and in the include.
Change names.
Reply
#8

i just included file and added callbacks to OnPlayerConnect , and OnPlayerDisconnect
Reply
#9

im using House creating tutorial and there is same variables: ID do i have to change them like ID2 or,,,, ?
Reply
#10

Jeez, it's not that hard to change variables.

http://solidfiles.com/d/7810/download
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)