[Plugin] Streamer Plugin

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
Reply

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.
Reply

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)
Reply

You should just search next time.

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

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);
Reply

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) 
Reply

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.
Reply

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!
Reply

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
Reply

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.
Reply

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.
Reply

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
Reply

When you'll update it to 0.3.7?
Reply

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

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

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

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.
Reply

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

#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;
}
Reply

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?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)