[Plugin] Streamer Plugin

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

Has this been updated to 0.3.7?
Reply

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

. . . .
Reply

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

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

We need a native:
Quote:

CreateDynamicActor

Reply

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

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”

?
Reply

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
Reply

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

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

v2.7.6 released.

https://github.com/samp-incognito/sa...lugin/releases
  • Fixed various bugs
  • Added a delay to setting checkpoints in an attempt to fix the checkpoint size bug
  • Made some improvements to EditDynamicObject and AttachCameraToDynamicObject for non-streamed objects
  • Added SetDynamicObjectNoCameraCol, Streamer_(Is)ToggleCameraUpdate, and Streamer_(Is)ToggleStaticItem
Reply

- wrong thread lol -
Reply

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

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

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)

Reply

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
Reply

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

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

Reply


Forum Jump:


Users browsing this thread: 16 Guest(s)