SA-MP Forums Archive
[Plugin] Streamer Plugin - 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: Plugin Development (https://sampforum.blast.hk/forumdisplay.php?fid=18)
+--- Thread: [Plugin] Streamer Plugin (/showthread.php?tid=102865)



Re: Streamer Plugin - Luca12 - 19.04.2015

For plugin developer

So I updated this streamer plugin to my gamemode and I compile it. It was fine then I run samp server console plugin is loaded fine when I enter in gamemode few seconds after that I get in my console from few publicks in gamemode stack underflow runtime error 7 then I switch back to previous version streamer and no errors after that. Is it problem a streamer version or ? Thanks


Re: Streamer Plugin - CasHiis - 20.04.2015

Please!

Add callbacks!

OnItemStreamIn(playerid, type, {Text3D,_}:id ); Called, if item streamed for player. ( distance < streamdistance )

OnItemVisibleIn(playerid, type, {Text3D,_}:id ); Called, if item visible for player. ( distance < drawdistance )

Good for I edit item, before visible for player.


Re: Streamer Plugin - Br3ad - 26.04.2015

I'm sorry if not but isn't GetDynamicObjectModel existing?

Or how can i get the model of an dynamic object?

(Sorry for my bad english. I'm from germany)


Re: Streamer Plugin - Abagail - 26.04.2015

You should just search next time.

pawn Код:
#define GetDynamicObjectModel(%0) Streamer_GetIntData( STREAMER_TYPE_OBJECT, %0, E_STREAMER_MODEL_ID )



Re: Streamer Plugin - Konstantinos - 26.04.2015

Quote:
Originally Posted by Br3ad
Посмотреть сообщение
I'm sorry if not but isn't GetDynamicObjectModel existing?

Or how can i get the model of an dynamic object?

(Sorry for my bad english. I'm from germany)
pawn Код:
new obj_modelid = Streamer_GetIntData(STREAMER_TYPE_OBJECT, objectid, E_STREAMER_MODEL_ID);



Re: Streamer Plugin - PT - 26.04.2015

Quote:
Originally Posted by Br3ad
Посмотреть сообщение
I'm sorry if not but isn't GetDynamicObjectModel existing?

Or how can i get the model of an dynamic object?

(Sorry for my bad english. I'm from germany)
Use something like this:

PHP код:
#define GetDynamicObjectModel(%0) Streamer_GetIntData(STREAMER_TYPE_OBJECT, %0, E_STREAMER_MODEL_ID) 



Re: Streamer Plugin - Abagail - 26.04.2015

Quote:
Originally Posted by PT
Посмотреть сообщение
Use something like this:

PHP код:
#define GetDynamicObjectModel(%0) Streamer_GetIntData(STREAMER_TYPE_OBJECT, %0, E_STREAMER_MODEL_ID); 
I believe you may have gotten this from my post before(in page 494), or not but (btw I posted this 2 posts above you), but the semicolon actually shouldn't be there and will result in an error if you use the function PROPERLY.


Re: Streamer Plugin - PT - 27.04.2015

Quote:
Originally Posted by Abagail
Посмотреть сообщение
I believe you may have gotten this from my post before(in page 494), or not but (btw I posted this 2 posts above you), but the semicolon actually shouldn't be there and will result in an error if you use the function PROPERLY.
Anyone could do that, easy stuff.

I could, but i not saw your post to say true.

# sorry for bad english!


Re: Streamer Plugin - Abagail - 27.04.2015

What I am referring to is that we both originally made the mistake of having a semicolon after - so I thought you were using my code


Re: Streamer Plugin - PT - 27.04.2015

Quote:
Originally Posted by Abagail
Посмотреть сообщение
What I am referring to is that we both originally made the mistake of having a semicolon after - so I thought you were using my code
I get that code from my gamemode i have some usefull functions on it, some i take from there ( i save it to later if i need if i saw is good) anothers i do, maybe i took or i did it i dont remember.

Well if is your not an problem credits to you xD.


Re: Streamer Plugin - Anuris - 01.05.2015

Hello.
I've got a question about AttachDynamicAreaToObject. What will happen with area, if I'll destroy object, area attached to?
Sorry for my English.


Re: Streamer Plugin - AbyssMorgan - 01.05.2015

Quote:
Originally Posted by Anuris
Посмотреть сообщение
Hello.
I've got a question about AttachDynamicAreaToObject. What will happen with area, if I'll destroy object, area attached to?
Sorry for my English.
It seems to me that the zone will return to the point where it was created.

Best thing to do
DestroyDynamicArea
DestroyDynamicObject

//edit
Alternatively arena pinned to a random object


Re: Streamer Plugin - feheristi97 - 01.05.2015

When you'll update it to 0.3.7?


Re: Streamer Plugin - Crayder - 01.05.2015

Quote:
Originally Posted by feheristi97
Посмотреть сообщение
When you'll update it to 0.3.7?
It doesn't need updated.


Re: Streamer Plugin - Adi007 - 01.05.2015

Everyone knows why onplayereditdynamicobject is not called at me?
I use EditDynamicObject, but is called OnPlayerEditObject, NOT OnPlayerEditDynamicObject, help please.


Re: Streamer Plugin - Abagail - 01.05.2015

Are you sure the object is dynamic and generated by the streamer?


Re: Streamer Plugin - Crayder - 02.05.2015

This:

Streamer_SetRadiusMultiplier(type, Float:multiplier, playerid = -1);

Makes everyone in my server crash even when I do a single playerid, no matter what multiplier I use it crashes everyone.


Re: Streamer Plugin - Adi007 - 02.05.2015

Quote:
Originally Posted by Abagail
Посмотреть сообщение
Are you sure the object is dynamic and generated by the streamer?
Yes i'm sure.


Re: Streamer Plugin - haikalxd6 - 02.05.2015

#Help [+REP]

the problem is ....if I move the object use editobject ,,then I save the object ... object was still in the place that I create ...

Код:
CMD:eo(playerid,params[])
{
	if(IsPlayerAdmin(playerid) || mappinginfo[playerid][mlicense] == 1)
	{
		new i, string[MAX_PLAYERS];
		if(sscanf(params,"i",i)) return SendClientMessage(playerid,X11_YELLOW,"stynx correct usage /eo [objectid]");
		if(cmodelid[playerid][i] <= 0 || i >= maxobject) return SendClientMessage(playerid,X11_YELLOW,"error ! invalid objectid");
		new x = cobject[playerid][i];
		Streamer_Update(playerid);
		EditDynamicObject(playerid, x);
  		MapAction[playerid] = x;
		EditingMap[playerid] = EDITING_MAP_ENABLED;
		format(string, sizeof(string), "+ you have choose objectid %d to edit", i);
		SendClientMessage(playerid, -1, string);
		if(textdiaoffja[playerid] == false)
		createobjecttext(playerid,cmodelid[playerid][i],i,pnama(playerid),cposx[playerid][i],cposy[playerid][i],cposz[playerid][i],crotx[playerid][i],croty[playerid][i],crotz[playerid][i]);
	}
        return 1;
}
Код:
public OnPlayerEditDynamicObject(playerid, objectid, response, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz)
{
	if(response == EDIT_RESPONSE_UPDATE) return 1;
	new i, Float:oldX, Float:oldY, Float:oldZ,
 		Float:oldRotX, Float:oldRotY, Float:oldRotZ;

	GetDynamicObjectPos(objectid, oldX, oldY, oldZ);
	GetDynamicObjectRot(objectid, oldRotX, oldRotY, oldRotZ);

	if(response == EDIT_RESPONSE_FINAL)
	{
		if(EditingMap[playerid] == EDITING_MAP_ENABLED)
		{
			new g = cobject[MapAction[playerid]][i];
			cposx[MapAction[playerid]][g] = x;
			cposy[MapAction[playerid]][g] = y;
			cposz[MapAction[playerid]][g] = z;
			crotx[MapAction[playerid]][g] = rx;
			croty[MapAction[playerid]][g] = ry;
			crotz[MapAction[playerid]][g] = rz;
			SetDynamicObjectPos(objectid, x, y, z);
			SetDynamicObjectRot(objectid, rx, ry, rz);
			SendClientMessage(playerid, -1, "You have edited the objectid...");
		}
	}
	if(response == EDIT_RESPONSE_CANCEL)
	{
		SetDynamicObjectPos(objectid, oldX, oldY, oldZ);
		SetDynamicObjectRot(objectid, oldRotX, oldRotY, oldRotZ);
	}
	return 1;
}



Re: Streamer Plugin - Luca12 - 02.05.2015

Quote:
Originally Posted by Luca12
Посмотреть сообщение
For plugin developer

So I updated this streamer plugin to my gamemode and I compile it. It was fine then I run samp server console plugin is loaded fine when I enter in gamemode few seconds after that I get in my console from few publicks in gamemode stack underflow runtime error 7 then I switch back to previous version streamer and no errors after that. Is it problem a streamer version or ? Thanks
anyone?