Okay ich habe das plugins hinzugefügt als include und im server als plugin und habe die funktionen die du oben geschrieben hast eingefügt. Jetzt habe ich das GetAttachDynamicObjectPos beim schiessen verwendet aber sobald ich schiesse schliesst sich der server ...
Ich habe das crashdetect plugin drin und dieses gibt mir folgendes aus:
Code
		
					
			--------------------------
SA-MP Server: 0.3.7
Exception At Address: 0x0052EB48 Module: (Unknown)
Registers:
EAX: 0x45528FAB	EBX: 0x0018F758	ECX: 0x00000000	EDX: 0x41DD1BA7
ESI: 0x03760F0C	EDI: 0x005A0358	EBP: 0x00248D00	ESP: 0x0052EB14
EFLAGS: 0x00010202
Stack:
+0000: 0x00000002   0x0378E890   0x00000001   0x79F9F691
+0010: 0x88000000   0x00248D00   0x0052EB48   0x00248D00
+0020: 0x00000004   0x04EA6D88   0x00000000   0x79F9F69D
+0030: 0x88000000   0x00248D00   0x0052EB08   0x0052EB28
+0040: 0x00000003   0x00558D60   0x80000001   0x79F9F699
+0050: 0x80000000   0x00000076   0x00000000   0x79F9F61B
+0060: 0x80000000   0x00000077   0x00000000   0x79F9F685
+0070: 0x80000000   0x79F9007A   0x80000000   0x0000007A
+0080: 0x00000000   0x00000000   0x00000000   0x79F9F681
+0090: 0x80000000   0x0000FFFF   0x00000000   0x00000000
+00A0: 0x00000000   0x00000000   0x00000000   0x00000000
+00B0: 0x00000000   0x1D3431CC   0x0803C6E5   0x00248A68
+00C0: 0x0024FFD0   0x0000000B   0xF0E0D0C0   0x79F9F629
+00D0: 0x8C000000   0x000000FB   0x00000001   0x00000000
+00E0: 0x00000000   0x0052ECC8   0x00000000   0x79F9F6D5
+00F0: 0x8C000000   0x000000FC   0x00000001   0x00000000
+0100: 0x00000000   0x0052ECA8   0x00000000   0x79F9F6D1
+0110: 0x8C000000   0x000000FD   0x00000001   0x00000000
+0120: 0x00000000   0x0052ECA8   0x00000000   0x79F9F6DD
+0130: 0x8C000000   0x000000FE   0x00000001   0x00000000
--------------------------
Loaded Modules:
samp-server.exe	A: 0x00400000 - 0x004FA000	(C:\Users\Odin\Desktop\GTA SAMP\SAMP 0.3.7 Server\samp-server.exe)
ntdll.dll	A: 0x77DC0000 - 0x77F40000	(C:\Windows\SysWOW64\ntdll.dll)
kernel32.dll	A: 0x778B0000 - 0x779C0000	(C:\Windows\syswow64\kernel32.dll)
KERNELBASE.dll	A: 0x774E0000 - 0x77527000	(C:\Windows\syswow64\KERNELBASE.dll)
SHELL32.dll	A: 0x75B70000 - 0x767BB000	(C:\Windows\syswow64\SHELL32.dll)
msvcrt.dll	A: 0x76F40000 - 0x76FEC000	(C:\Windows\syswow64\msvcrt.dll)
SHLWAPI.dll	A: 0x76AC0000 - 0x76B17000	(C:\Windows\syswow64\SHLWAPI.dll)
GDI32.dll	A: 0x76A30000 - 0x76AC0000	(C:\Windows\syswow64\GDI32.dll)
USER32.dll	A: 0x75A70000 - 0x75B70000	(C:\Windows\syswow64\USER32.dll)
ADVAPI32.dll	A: 0x768C0000 - 0x76961000	(C:\Windows\syswow64\ADVAPI32.dll)
sechost.dll	A: 0x75780000 - 0x75799000	(C:\Windows\SysWOW64\sechost.dll)
RPCRT4.dll	A: 0x77140000 - 0x77230000	(C:\Windows\syswow64\RPCRT4.dll)
SspiCli.dll	A: 0x75720000 - 0x75780000	(C:\Windows\syswow64\SspiCli.dll)
CRYPTBASE.dll	A: 0x75710000 - 0x7571C000	(C:\Windows\syswow64\CRYPTBASE.dll)
LPK.dll	A: 0x76A20000 - 0x76A2A000	(C:\Windows\syswow64\LPK.dll)
USP10.dll	A: 0x757A0000 - 0x7583D000	(C:\Windows\syswow64\USP10.dll)
WSOCK32.dll	A: 0x752F0000 - 0x752F7000	(C:\Windows\system32\WSOCK32.dll)
WS2_32.dll	A: 0x77240000 - 0x77275000	(C:\Windows\syswow64\WS2_32.dll)
NSI.dll	A: 0x774D0000 - 0x774D6000	(C:\Windows\syswow64\NSI.dll)
WINMM.dll	A: 0x70FE0000 - 0x71012000	(C:\Windows\system32\WINMM.dll)
IMM32.DLL	A: 0x76860000 - 0x768C0000	(C:\Windows\system32\IMM32.DLL)
MSCTF.dll	A: 0x773C0000 - 0x7748C000	(C:\Windows\syswow64\MSCTF.dll)
dbghelp.dll	A: 0x684B0000 - 0x6859B000	(C:\Windows\system32\dbghelp.dll)
MSVCP100.dll	A: 0x66120000 - 0x66189000	(C:\Windows\system32\MSVCP100.dll)
MSVCR100.dll	A: 0x66060000 - 0x6611F000	(C:\Windows\system32\MSVCR100.dll)
streamer.dll	A: 0x69C70000 - 0x69CB6000	(C:\Users\Odin\Desktop\GTA SAMP\SAMP 0.3.7 Server\plugins\streamer.dll)
MSVCP120.dll	A: 0x65E90000 - 0x65F01000	(C:\Windows\system32\MSVCP120.dll)
MSVCR120.dll	A: 0x65CE0000 - 0x65DCE000	(C:\Windows\system32\MSVCR120.dll)
sscanf.dll	A: 0x10000000 - 0x1000D000	(C:\Users\Odin\Desktop\GTA SAMP\SAMP 0.3.7 Server\plugins\sscanf.dll)
LavasoftTcpService.dll	A: 0x00390000 - 0x003E8000	(C:\Windows\system32\LavasoftTcpService.dll)
MSWSOCK.dll	A: 0x719E0000 - 0x71A1C000	(C:\Windows\system32\MSWSOCK.dll)
IPHLPAPI.DLL	A: 0x75120000 - 0x7513C000	(C:\Windows\system32\IPHLPAPI.DLL)
WINNSI.DLL	A: 0x75110000 - 0x75117000	(C:\Windows\system32\WINNSI.DLL)
OLEAUT32.dll	A: 0x77330000 - 0x773BF000	(C:\Windows\syswow64\OLEAUT32.dll)
VERSION.dll	A: 0x75060000 - 0x75069000	(C:\Windows\system32\VERSION.dll)
wshtcpip.dll	A: 0x71860000 - 0x71865000	(C:\Windows\System32\wshtcpip.dll)
uxtheme.dll	A: 0x6E050000 - 0x6E0D0000	(C:\Windows\system32\uxtheme.dll)
NLAapi.dll	A: 0x72E40000 - 0x72E50000	(C:\Windows\system32\NLAapi.dll)
napinsp.dll	A: 0x72E30000 - 0x72E40000	(C:\Windows\system32\napinsp.dll)
pnrpnsp.dll	A: 0x72E10000 - 0x72E22000	(C:\Windows\system32\pnrpnsp.dll)
DNSAPI.dll	A: 0x75160000 - 0x751A4000	(C:\Windows\system32\DNSAPI.dll)
winrnr.dll	A: 0x718F0000 - 0x718F8000	(C:\Windows\System32\winrnr.dll)
rasadhlp.dll	A: 0x72DC0000 - 0x72DC6000	(C:\Windows\system32\rasadhlp.dll)
CLBCatQ.DLL	A: 0x76970000 - 0x769F3000	(C:\Windows\syswow64\CLBCatQ.DLL)
CRYPTSP.dll	A: 0x74D60000 - 0x74D77000	(C:\Windows\system32\CRYPTSP.dll)
RpcRtRemote.dll	A: 0x74670000 - 0x7467E000	(C:\Windows\system32\RpcRtRemote.dll)
SXS.DLL	A: 0x73E10000 - 0x73E6F000	(C:\Windows\system32\SXS.DLL)
	
			Alles anzeigen
	Den Code angewendet habe ich so:
C
		
					
			@shoot(objID, vehID, q, Float:z2);@shoot(objID, vehID, q, Float:z2)
{
    if(vehicle[vehID][guns] == false) return 1;
    if(--q == 0) return 1;
    new Float:x, Float:y, Float:z, Float:rz, Float:x1, Float:y1, Float:z1;
	GetAttachDynamicObjectPos(objID, vehID, x, y, z, rz, rz, rz); //######## << HIER
	const Float:distance = 3.0; //Berechnung des Start loc
    x += distance * floatsin(-rz, degrees);
    y += distance * floatcos(-rz, degrees);
	new obj = CreateObject(1485, x, y, z+z2, 0.0, 0.0, rz+26.036);
    GetObjectPos(obj, x1, y1, z1);
    const Float:distance1 = 30.0; //Berechnung des Ziel loc
    x1 += distance1 * floatsin(-rz, degrees);
    y1 += distance1 * floatcos(-rz, degrees);
    MoveObject(obj, x1, y1, z1, 20.0, 0.0, 0.0, rz+26.036);
    SetTimerEx(!"@check",200,0,!"i",obj);
    return SetTimerEx(!"@shoot", 100, 0, !"iifff", vehID, q, z2);
}
	
			Alles anzeigen