SA-MP Forums Archive
OnPlayerEditAttachedObject does not callback - 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: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: OnPlayerEditAttachedObject does not callback (/showthread.php?tid=595958)



OnPlayerEditAttachedObject does not callback - feedme - 10.12.2015

Can anybody confirm that OnPlayerEditAttachedObject is working at the moment?

Thats my code and i dont get the Test Message

Code:
 public OnPlayerEditAttachedObject(playerid, response, index, modelid, boneid, Float:fOffsetX, Float:fOffsetY, Float:fOffsetZ, Float:fRotX, Float:fRotY, Float:fRotZ, Float:fScaleX, Float:fScaleY, Float:fScaleZ)
{

		 SendClientMessage(playerid, 0xFF0000FF, "Test");
                 if(0.0 < fScaleX <=  1.5 || 0.0 <  fScaleY <=  1.5 || 0.0 < fScaleZ <=  1.5)
		  {
			SendClientMessage(playerid, 0xFF0000FF, "* Dein Item wird zu groЯ oder zu klein!");
			new item;
			item = GetPVarInt(playerid,"brille");
			SetPlayerAttachedObject(playerid, 3, item, 2, 0.201, -0.0, 0.0, 5.50, 84.60, 83.7, 1, 1, 1, -1);
			EditAttachedObject(playerid, 3); // Edit again

		  }
		if(0.0 < fOffsetX <= 0.5 || 0.0 < fOffsetY <= 0.5 || 0.0 < fOffsetZ <= 0.5)
		  {
			SendClientMessage(playerid, 0xFF0000FF, "* Dein Item wird zu groЯ oder zu klein!");
			new item;
			item = GetPVarInt(playerid,"brille");
			SetPlayerAttachedObject(playerid, 3, item, 2, 0.201, -0.0, 0.0, 5.50, 84.60, 83.7, 1, 1, 1, -1);
			EditAttachedObject(playerid, 3); // Edit again

		  }
}
thx


Re: OnPlayerEditAttachedObject does not callback - Richie© - 10.12.2015

I had same problem where some streamer callbacks were not called at all.
I fixed this by upgrading mysql plugin from R39-2 to R39-4 after i saw changelog for the plugin "bug-fix: incompatibility with plugins using the sampgdk, where callbacks sometimes aren't called".


Re: OnPlayerEditAttachedObject does not callback - Robi1999 - 10.12.2015

I now idea


Re: OnPlayerEditAttachedObject does not callback - feedme - 10.12.2015

thanks, but i dont use the mysql plugin, its just in an filterscript including <a_samp>