[HELP]With object streamer
#1

I've downloaded MidoBins object streamer but theres a problem i've done eveything right i hope i've put the

Include file in the includes folder

I've put the filterscripts in the filterscripts folder.. and opened my script and added at the top

#include <MidoStream>

I think u gota do that

Then i converterd my objects and pasted them under onGameModeInit with

The object streamer funtion


Named it in server.cfg

went in my server but there we're no objects!!


Why??

Pleaase reply thanks..
Reply
#2

Anyone this is very importn't!
Reply
#3

IDK exactly what to say to this, because I've used
Midostreamer before and it works fine.

But, I do recommend you to try other object streamer like :
[REL] Streamer Plugin, YSI, etc...
Reply
#4

Quote:
Originally Posted by ViruZZzZ_ChiLLL
IDK exactly what to say to this, because I've used
Midostreamer before and it works fine.

But, I do recommend you to try other object streamer like :
[REL] Streamer Plugin, YSI, etc...
Hmm can you maybe make a tut on how to use it

Cuz i'm proberly using it wrong here are show u my code


->





Код:
#include <a_samp>
#include <Midostream>
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
	print("\n--------------------------------------");
	print(" Blank Filterscript by your name here");
	print("--------------------------------------\n");
	return 1;
}

public OnFilterScriptExit()
{
	return 1;
}

#else

main()
{
	print("\n----------------------------------");
	print("   Extreme Stunting v1.2");
	print("----------------------------------\n");
}

#endif

public OnGameModeInit()
{
    
	CreateStreamObject(1655, -81.359741210938, 2523.8452148438, 41.052207946777, 5.9930419921875, 0.000000, 267.98400878906, 250.0); //
	SendRconCommand("mapname Extreme Stunts");
	SetGameModeText("Stunt+Race+Drift");
	AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
	return 1;
}

public OnGameModeExit()
{
	return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
	SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
	SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
	SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
	return 1;
}

public OnPlayerRequestSpawn(playerid)
{
	return 1;
}

public OnPlayerConnect(playerid)
{
	return 1;
}

public OnPlayerDisconnect(playerid, reason)
{  MidoStreamDisconnect(playerid);
	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 OnPlayerPrivmsg(playerid, recieverid, text[])
{
	return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/mycommand", cmdtext, true, 10) == 0)
	{
		// Do something here
		return 1;
	}
	return 0;
}

public OnPlayerInfoChange(playerid)
{
	return 1;
}

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

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

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

public OnPlayerEnterCheckpoint(playerid)
{
	return 1;
}

public OnPlayerLeaveCheckpoint(playerid)
{
	return 1;
}

public OnPlayerEnterRaceCheckpoint(playerid)
{
	return 1;
}

public OnPlayerLeaveRaceCheckpoint(playerid)
{
	return 1;
}

public OnRconCommand(cmd[])
{
	return 1;
}

public OnObjectMoved(objectid)
{
	return 1;
}

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

public OnPlayerPickUpPickup(playerid, pickupid)
{
	return 1;
}

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

public OnPlayerExitedMenu(playerid)
{
	return 1;
}
Notice theres only 1 object because i removed the rest cuz i was scared of noobs stealing them.
Reply
#5

Well I could make a [TUT] but ATM I'm kinda busy

Also, IDK if this will help in any way, REMOVE THE
FilterScript elements. Like the OnFilterScriptInit()
and others...
Reply
#6

Quote:
Originally Posted by ViruZZzZ_ChiLLL
Well I could make a [TUT] but ATM I'm kinda busy

Also, IDK if this will help in any way, REMOVE THE
FilterScript elements. Like the OnFilterScriptInit()
and others...
Ok i will try that first, Then can you maybe make a tut when you are free PM me.
Reply
#7

Uncomment the line
Код:
#define FILTERSCRIPT
if you are using it as a FS.

EDIT: BTW
Код:
MidoStreamDisconnect(playerid);
is under OnPlayerConnect. Are you sure you are not missing anything under OnPlayerConnect?

I don't see why removing the OnFilterScriptInit() and other FS related callbacks are gonna make a difference.
Reply
#8

Recommended is xObjects
All you have to do is put everything after CreateObject( and before ); between the brackets '{ and }'
Or just read the tutorial :P
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)