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 - haikalxd6 - 02.05.2015

any one ? urgent ...

Quote:

#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 - Whizion - 05.05.2015

Has this been updated to 0.3.7?


Re: Streamer Plugin - BGTrucker - 05.05.2015

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


Re: Streamer Plugin - idontcareRO - 05.05.2015

. . . .


Re: Streamer Plugin - beckzy - 06.05.2015

There are new object functions in 0.3.7 - GetObjectModel being one of them. Will these be added for dynamic objects? I.e. GetDynamicObjectModel?


Re: Streamer Plugin - Crayder - 06.05.2015

Quote:
Originally Posted by BeckzyBoi
Посмотреть сообщение
There are new object functions in 0.3.7 - GetObjectModel being one of them. Will these be added for dynamic objects? I.e. GetDynamicObjectModel?
It has been possible in Streamer since way before 0.3.7:
Код:
Streamer_GetIntData(STREAMER_TYPE_OBJECT, objectid, E_STREAMER_MODEL_ID);
Or to make things easier:
Код:
#define GetDynamicObjectModel(%0) Streamer_GetIntData(STREAMER_TYPE_OBJECT, %0, E_STREAMER_MODEL_ID)



Re: Streamer Plugin - Urukhay - 08.05.2015

We need a native:
Quote:

CreateDynamicActor




Re: Streamer Plugin - Crayder - 08.05.2015

@People who had problems with SetRadiusMultiplier: It's fixed in the latest commit (tested)!


Re: Streamer Plugin - Mido10 - 11.05.2015

Can I have a question under what or where I can put the native codes ?
and why it says
“Script [gamemodes/LARP.amx]: Run time error 17: “Invalid/unsupported P-code file format”

?


Re: Streamer Plugin - BGTrucker - 11.05.2015

Quote:
Originally Posted by Mido10
Посмотреть сообщение
Can I have a question under what or where I can put the native codes ?
and why it says
“Script [gamemodes/LARP.amx]: Run time error 17: “Invalid/unsupported P-code file format”

?
Im not sure if this will solve your problem.
https://sampforum.blast.hk/showthread.php?tid=250875


Re: Streamer Plugin - Mido10 - 11.05.2015

And there is another prob. when you press compile he cant read anything for <morphinc> and <Dini> files ?


Re: Streamer Plugin - Abagail - 11.05.2015

That's not the streamer's problem, it is your problem. Try making a thread in "Scripting Help".


Re: Streamer Plugin - Kar - 11.05.2015

v2.7.6 released.

https://github.com/samp-incognito/sa...lugin/releases



Re: Streamer Plugin - Evocator - 11.05.2015

- wrong thread lol -


Re: Streamer Plugin - Crayder - 11.05.2015

Quote:
Originally Posted by Ralfie
Посмотреть сообщение
Hi, added a bot, registered it, setted its mode, im connecting it via the plugin and under IRC_OnConnect im adding:

IRC_SendRaw(botid, "ns id -"); Where - is the password,

But still its not getting its voice, any idea?
Umm... Wrong plugin thread?


Re: Streamer Plugin - Evocator - 12.05.2015

Quote:
Originally Posted by Crayder
Посмотреть сообщение
Umm... Wrong plugin thread?
Fuck im so sorry.


Re: Streamer Plugin - kaZax - 12.05.2015

On 2.7.5 work.
On 2.7.6:
Quote:

[20:13:37] [sampgdk:warning] Index mismatch for OnPlayerPickUpPickup (-10031 != -10046)
[20:13:39] [sampgdk:warning] Index mismatch for OnPlayerPickUpPickup (-10031 != -10046)
[20:13:41] [sampgdk:warning] Index mismatch for OnPlayerPickUpPickup (-10031 != -10046)
[20:13:49] [sampgdk:warning] Index mismatch for OnPlayerPickUpPickup (-10031 != -10046)
[20:13:50] [sampgdk:warning] Index mismatch for OnPlayerPickUpPickup (-10031 != -10046)




Re: Streamer Plugin - Anuris - 12.05.2015

Got this when compilling 2.7.6 on Debian:

cc1: warning: command line option ‘-fvisibility-inlines-hidden’ is valid for C++ /ObjC++ but not for C [enabled by default]
lib/sampgdk/sampgdk.c: In function ‘sampgdk_GetVehicleVelocity’:
lib/sampgdk/sampgdk.c:2092:30: warning: ‘Z_’ may be used uninitialized in this f unction [-Wmaybe-uninitialized]
lib/sampgdk/sampgdk.c:6517:8: note: ‘Z_’ was declared here
lib/sampgdk/sampgdk.c: In function ‘sampgdk_GetVehicleDamageStatus’:
lib/sampgdk/sampgdk.c:2092:30: warning: ‘tires_’ may be used uninitialized in th is function [-Wmaybe-uninitialized]
lib/sampgdk/sampgdk.c:6575:8: note: ‘tires_’ was declared here
lib/sampgdk/sampgdk.c:2092:30: warning: ‘lights_’ may be used uninitialized in t his function [-Wmaybe-uninitialized]
lib/sampgdk/sampgdk.c:6574:8: note: ‘lights_’ was declared here
lib/sampgdk/sampgdk.c:2092:30: warning: ‘doors_’ may be used uninitialized in th is function [-Wmaybe-uninitialized]
lib/sampgdk/sampgdk.c:6573:8: note: ‘doors_’ was declared here
lib/sampgdk/sampgdk.c:2045:47: warning: ‘panels_’ may be used uninitialized in t his function [-Wmaybe-uninitialized]
lib/sampgdk/sampgdk.c:6572:8: note: ‘panels_’ was declared here
lib/sampgdk/sampgdk.c: In function ‘sampgdk_GetVehicleModelInfo’:
lib/sampgdk/sampgdk.c:2092:30: warning: ‘Z_’ may be used uninitialized in this f unction [-Wmaybe-uninitialized]
lib/sampgdk/sampgdk.c:6647:8: note: ‘Z_’ was declared here
lib/sampgdk/sampgdk.c:2092:30: warning: ‘Y_’ may be used uninitialized in this f unction [-Wmaybe-uninitialized]
lib/sampgdk/sampgdk.c:6646:8: note: ‘Y_’ was declared here
lib/sampgdk/sampgdk.c:2045:47: warning: ‘X_’ may be used uninitialized in this f unction [-Wmaybe-uninitialized]
lib/sampgdk/sampgdk.c:6645:8: note: ‘X_’ was declared here
lib/sampgdk/sampgdk.c: In function ‘sampgdk_GetObjectPos’:
lib/sampgdk/sampgdk.c:2092:30: warning: ‘z_’ may be used uninitialized in this f unction [-Wmaybe-uninitialized]
lib/sampgdk/sampgdk.c:6784:8: note: ‘z_’ was declared here
lib/sampgdk/sampgdk.c:2092:30: warning: ‘y_’ may be used uninitialized in this f unction [-Wmaybe-uninitialized]
lib/sampgdk/sampgdk.c:6783:8: note: ‘y_’ was declared here
lib/sampgdk/sampgdk.c:2045:47: warning: ‘x_’ may be used uninitialized in this f unction [-Wmaybe-uninitialized]
lib/sampgdk/sampgdk.c:6782:8: note: ‘x_’ was declared here
lib/sampgdk/sampgdk.c: In function ‘sampgdk_GetPlayerObjectPos’:
lib/sampgdk/sampgdk.c:2092:30: warning: ‘z_’ may be used uninitialized in this f unction [-Wmaybe-uninitialized]
lib/sampgdk/sampgdk.c:7070:8: note: ‘z_’ was declared here
lib/sampgdk/sampgdk.c: In function ‘sampgdk_GetPlayerObjectRot’:
lib/sampgdk/sampgdk.c:2092:30: warning: ‘rotZ_’ may be used uninitialized in thi s function [-Wmaybe-uninitialized]
lib/sampgdk/sampgdk.c:7114:8: note: ‘rotZ_’ was declared here
lib/sampgdk/sampgdk.c:2092:30: warning: ‘rotY_’ may be used uninitialized in thi s function [-Wmaybe-uninitialized]
lib/sampgdk/sampgdk.c:7113:8: note: ‘rotY_’ was declared here
lib/sampgdk/sampgdk.c:2045:47: warning: ‘rotX_’ may be used uninitialized in thi s function [-Wmaybe-uninitialized]
lib/sampgdk/sampgdk.c:7112:8: note: ‘rotX_’ was declared here
amxplugin.cpp


Re: Streamer Plugin - Abagail - 12.05.2015

Quote:
Originally Posted by kaZax
Посмотреть сообщение
On 2.7.5 work.
On 2.7.6:
If you are using YSF R13 pre 3, you can't use it right now.
Quote:
Originally Posted by kurta999
Посмотреть сообщение
Before anybody ask:

YSF R13 pre 3 won't work properly with streamer plugin 2.7.6, because different samp gdk version. Fix will arrive soon.



Re: Streamer Plugin - Max_Andolini - 14.05.2015

[sampgdk:error] Too many callback arguments (at most 32 allowed)