Streamer Problem
#1

Код:
E:\work\filterscripts\Easy DeAMX\hello.pwn(10) : warning 209: function "Streamer_OnPlayerConnect" should return a value
E:\work\filterscripts\Easy DeAMX\hello.pwn(11) : error 010: invalid function or declaration
E:\work\filterscripts\Easy DeAMX\hello.pwn(20) : error 025: function heading differs from prototype
E:\work\filterscripts\Easy DeAMX\hello.pwn(29) : error 025: function heading differs from prototype
E:\work\filterscripts\Easy DeAMX\hello.pwn(2842) : error 021: symbol already defined: "Streamer_OnPlayerConnect"
E:\work\filterscripts\Easy DeAMX\hello.pwn(2847) : error 021: symbol already defined: "Streamer_OnPlayerDisconnect"
E:\work\filterscripts\Easy DeAMX\hello.pwn(2871) : error 025: function heading differs from prototype
E:\work\filterscripts\Easy DeAMX\hello.pwn(2892) : error 021: symbol already defined: "Streamer_OnPlayerEnterCP"
E:\work\filterscripts\Easy DeAMX\hello.pwn(2897) : error 021: symbol already defined: "Streamer_OnPlayerLeaveCP"
E:\work\filterscripts\Easy DeAMX\hello.pwn(2902) : error 021: symbol already defined: "Streamer_OnPlayerEnterRaceCP"
E:\work\filterscripts\Easy DeAMX\hello.pwn(2907) : error 021: symbol already defined: "Streamer_OnPlayerLeaveRaceCP"
E:\work\filterscripts\Easy DeAMX\hello.pwn(2911) : error 025: function heading differs from prototype
E:\work\filterscripts\Easy DeAMX\hello.pwn(2932) : error 021: symbol already defined: "Streamer_OnPlayerPickUpPickup"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


12 Errors.
Код:
public OnPlayerConnect(playerid)

 Streamer_CallbackHook(0, playerid);
	return Streamer_OnPlayerConnect(playerid);
}

public OnPlayerDisconnect(playerid, reason)
{
	Streamer_CallbackHook(1, playerid, reason);
	return Streamer_OnPlayerDisconnect(playerid, reason);
}

public OnPlayerEditObject(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9)
{
	if(arg1)
	{
		Streamer_CallbackHook(2, arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9);
	}
	return 1;
}

public OnPlayerSelectObject(arg0, arg1, arg2, arg3, arg4, arg5, arg6)
{
	if(arg1 == 2)
	{
		Streamer_CallbackHook(3, arg0, arg1, arg2, arg3, arg4, arg5, arg6);
	}
	return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
	Streamer_CallbackHook(4, playerid, pickupid);
	return Streamer_OnPlayerPickUpPickup(playerid, pickupid);
}

public OnPlayerEnterCheckpoint(playerid)
{
	Streamer_CallbackHook(5, playerid);
	return Streamer_OnPlayerEnterCP(playerid);
}

public OnPlayerLeaveCheckpoint(playerid)
{
	Streamer_CallbackHook(6, playerid);
	return Streamer_OnPlayerLeaveCP(playerid);
}

public OnPlayerEnterRaceCheckpoint(playerid)
{
	Streamer_CallbackHook(7, playerid);
	return Streamer_OnPlayerEnterRaceCP(playerid);
}

public OnPlayerLeaveRaceCheckpoint(playerid)
{
	Streamer_CallbackHook(8, playerid);
	return Streamer_OnPlayerLeaveRaceCP(playerid);
}

(CODES HERE)////////////////////////////////////////////////////////////////////////////////////////////////////////


public OnFilterScriptExit()
{
	return 1;
}

public OnGameModeInit()
{
	return 1;
}

public OnGameModeExit()
{
	return 1;
}

public Streamer_OnPlayerConnect()
{
	return 1;
}

public Streamer_OnPlayerDisconnect()
{
	return 1;
}

public OnPlayerSpawn(playerid)
{
	return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
	return 1;
}

public OnVehicleSpawn(vehicleid)
{
	return 1;
}

public OnVehicleDeath(vehicleid, killerid)
{
	return 1;
}

public OnPlayerText(playerid, text)
{
	return 1;
}

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
	return 1;
}

public OnPlayerExitVehicle(playerid, vehicleid)
{
	return 1;
}

public OnPlayerStateChange(playerid, newstate, oldstate)
{
	return 1;
}

public Streamer_OnPlayerEnterCP()
{
	return 1;
}

public Streamer_OnPlayerLeaveCP()
{
	return 1;
}

public Streamer_OnPlayerEnterRaceCP()
{
	return 1;
}

public Streamer_OnPlayerLeaveRaceCP()
{
	return 1;
}

public OnRconCommand(cmd)
{
	return 1;
}

public OnPlayerRequestSpawn(playerid)
{
	return 1;
}

public OnObjectMoved(objectid)
{
	return 1;
}

public OnPlayerObjectMoved(playerid, objectid)
{
	return 1;
}

public Streamer_OnPlayerPickUpPickup()
{
	return 1;
}

public OnVehicleMod()
{
	return 1;
}

public OnVehiclePaintjob()
{
	return 1;
}

public OnVehicleRespray()
{
	return 1;
}

public OnPlayerSelectedMenuRow(playerid, row)
{
	return 1;
}

public OnPlayerExitedMenu(playerid)
{
	return 1;
}

public OnPlayerInteriorChange()
{
	return 1;
}

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
	return 1;
}

public OnRconLoginAttempt()
{
	return 1;
}

public OnPlayerUpdate()
{
	return 1;
}

public OnPlayerStreamIn()
{
	return 1;
}

public OnPlayerStreamOut()
{
	return 1;
}

public OnVehicleStreamIn()
{
	return 1;
}

public OnVehicleStreamOut()
{
	return 1;
}

public OnDialogResponse()
{
	return 1;
}

public OnPlayerClickPlayer()
{
	return 1;
}
Reply
#2

Quote:
Originally Posted by Vin Diesel
Посмотреть сообщение
Код:
public OnPlayerConnect(playerid)

 Streamer_CallbackHook(0, playerid);
	return Streamer_OnPlayerConnect(playerid);
}
Код:
public OnPlayerConnect(playerid)
{
 Streamer_CallbackHook(0, playerid);
	return Streamer_OnPlayerConnect(playerid);
}
?
Reply
#3

Check out the errors

E:\work\filterscripts\Easy DeAMX\hello.pwn(11) : warning 217: loose indentation
E:\work\filterscripts\Easy DeAMX\hello.pwn(20) : error 025: function heading differs from prototype
E:\work\filterscripts\Easy DeAMX\hello.pwn(29) : error 025: function heading differs from prototype
E:\work\filterscripts\Easy DeAMX\hello.pwn(2842) : error 021: symbol already defined: "Streamer_OnPlayerConnect"
E:\work\filterscripts\Easy DeAMX\hello.pwn(2847) : error 021: symbol already defined: "Streamer_OnPlayerDisconnect"
E:\work\filterscripts\Easy DeAMX\hello.pwn(2871) : error 025: function heading differs from prototype
E:\work\filterscripts\Easy DeAMX\hello.pwn(2892) : error 021: symbol already defined: "Streamer_OnPlayerEnterCP"
E:\work\filterscripts\Easy DeAMX\hello.pwn(2897) : error 021: symbol already defined: "Streamer_OnPlayerLeaveCP"
E:\work\filterscripts\Easy DeAMX\hello.pwn(2902) : error 021: symbol already defined: "Streamer_OnPlayerEnterRaceCP"
E:\work\filterscripts\Easy DeAMX\hello.pwn(2907) : error 021: symbol already defined: "Streamer_OnPlayerLeaveRaceCP"
E:\work\filterscripts\Easy DeAMX\hello.pwn(2911) : error 025: function heading differs from prototype
E:\work\filterscripts\Easy DeAMX\hello.pwn(2932) : error 021: symbol already defined: "Streamer_OnPlayerPickUpPickup"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


11 Errors.
Reply
#4

What is this file?
Reply
#5

Why are you trying to use these in your gamemode itself? These are defined in the streamer includes and other specific callbacks are made for use in your gamemode.

Код:
forward OnPlayerPickUpDynamicPickup(playerid, STREAMER_TAG_PICKUP pickupid);
forward OnPlayerEnterDynamicCP(playerid, STREAMER_TAG_CP checkpointid);
forward OnPlayerLeaveDynamicCP(playerid, STREAMER_TAG_CP checkpointid);
forward OnPlayerEnterDynamicRaceCP(playerid, STREAMER_TAG_RACE_CP checkpointid);
forward OnPlayerLeaveDynamicRaceCP(playerid, STREAMER_TAG_RACE_CP checkpointid);
These are what you should be using... Those callbacks you are attempting to be using, are internal ones.

OnPlayerConnect and OnPlayerDisconnect are already using the streamer when you use it.
Reply
#6

It's filterscript sew
Reply
#7

Код:
#include <streamer>
should be enough instead of all these nonsense.
Reply
#8

Quote:
Originally Posted by Troydere
Посмотреть сообщение
Код:
#include <streamer>
should be enough instead of all these nonsense.
We already tried including streamer. Me and diesel work together
Reply
#9

As Sew said, you don't need all of these hooks, they are defined in the streamer include. That's internal code you guys should not be using.
Reply
#10

Quote:
Originally Posted by Vin Diesel
Посмотреть сообщение
It's filterscript sew
Quote:
Originally Posted by Sunehildeep
Посмотреть сообщение
We already tried including streamer. Me and diesel work together
What's the reason you are trying to use the internals, rather than the actual methods?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)