[Plugin] YSF - kurta999's version
#61

I've found the problem: I had YSF loaded because I was testing few things before. I then changed the gamemode file and the new one uses SetPlayerWeather. YSF plugin is loaded but the gamemode does not include YSF and that caused the crash. After including it and testing it again is fine.
Reply
#62

I dont have sure if have an server way to disable this.

But have some way to disable the links of music when you play them for players with the PlayAudioStreamForPlayer?
Reply
#63

Quote:

[21:52:20] Error: Function not registered: 'GetWeather'
[21:52:20] Script[gamemodes/imperial.amx]: Run time error 19: "File or function is not found"

4char
Reply
#64

that can be changed on client side by typing /audiomsg and theres nothing any server plugin can do to remove that chat message.
Reply
#65

Quote:
Originally Posted by Konstantinos
View Post
I've found the problem: I had YSF loaded because I was testing few things before. I then changed the gamemode file and the new one uses SetPlayerWeather. YSF plugin is loaded but the gamemode does not include YSF and that caused the crash. After including it and testing it again is fine.
I think that was the problem. If SAMPGDK is fine, i'll add callback hooks inside the plugin because I don't like things, which is not plug'n'play.

Quote:
Originally Posted by kvann
View Post
4char
Wait for R5. Will be fixed.

Quote:
Originally Posted by iFarbod
View Post
SetPlayerWeather works fine!

_______

pawn Code:
stock GetPlayerGangZone(playerid)
{
    for(new i = 0; i != MAX_GANG_ZONES; ++i)
    {
        if(IsPlayerInGangZone(playerid, i))
        {
            return i;
        }
    }
    return -1;
}
This is not good, because player can be more than one zone at once.

Anyway somebody, please test this

http://forum.sa-mp.com/showpost.php?...9&postcount=12
Reply
#66

Is possible to play multiple audio streams at once?
Reply
#67

Quote:
Originally Posted by TheArcher
View Post
Is possible to play multiple audio streams at once?
Not with just a server plugin.

Quote:
Originally Posted by kurta999
View Post
Test what? You said SetPlayerTeamForPlayer doesn't work.
Reply
#68

Why when i start samp-server it's show me error: MSVCR100.dll missing?
I setup him again in system32 and its dosn't work and show me the error again??
Reply
#69

Quote:
Originally Posted by Dumbes
Посмотреть сообщение
Why when i start samp-server it's show me error: MSVCR100.dll missing?
I setup him again in system32 and its dosn't work and show me the error again??
Place "MSVCR100.dll" on your server directory. That should work.
Reply
#70

Download Visual C++ Redistributable 2012/2010 x86 Update 4, install it and problem solved. NEVER download missing .dll files from somewhere shit webpage.
Reply
#71

YSF appears that crash my server.
Crashdetect log, if that helps with anything:
Код:
[18:52:01] [debug] Server crashed while executing gamemode.amx
[18:52:02] [debug] AMX backtrace:
[18:52:02] [debug] #0 native SetPlayerGravity () [02e036e0] from YSF.DLL
[18:52:02] [debug] #1 00056e68 in ?? (0x00000002) from gamemode.amx
[18:52:02] [debug] #2 00059d48 in ?? (0x00000002, 0x00000000) from gamemode.amx
[18:52:02] [debug] #3 0000d398 in public YSF_OnPlayerDisconnect (0x00000002, 0x00000000) from gamemode.amx
[18:52:02] [debug] #4 000082fc in public Streamer_OnPlayerDisconnect (0x00000002, 0x00000000) from gamemode.amx
[18:52:02] [debug] #5 00007e38 in public SSCANF_OnPlayerDisconnect (0x00000002, 0x00000000) from gamemode.amx
[18:52:02] [debug] #6 000022d4 in public Itter_OnPlayerDisconnect (0x00000002, 0x00000000) from gamemode.amx
[18:52:02] [debug] #7 0000191c in public OnPlayerDisconnect (0x00000002, 0x00000000) from gamemode.amx
[18:52:02] [debug] Native backtrace:
[18:52:02] [debug] #0 02e03779 in ?? () from plugins\YSF.DLL
[18:52:02] [debug] #1 6bfb49ca in ?? () from plugins\crashdetect.DLL
[18:52:02] [debug] #2 6bfb681f in ?? () from plugins\crashdetect.DLL
[18:52:02] [debug] #3 6bfa9b84 in ?? () from plugins\crashdetect.DLL
[18:52:02] [debug] #4 6bfb4a1a in ?? () from plugins\crashdetect.DLL
[18:52:02] [debug] #5 0046ceab in ?? () from samp-server.exe
Thanks in advance
Reply
#72

Quote:
Originally Posted by [WSF]ThA_Devil
Посмотреть сообщение
YSF appears that crash my server.
Crashdetect log, if that helps with anything:
Код:
[18:52:01] [debug] Server crashed while executing gamemode.amx
[18:52:02] [debug] AMX backtrace:
[18:52:02] [debug] #0 native SetPlayerGravity () [02e036e0] from YSF.DLL
[18:52:02] [debug] #1 00056e68 in ?? (0x00000002) from gamemode.amx
[18:52:02] [debug] #2 00059d48 in ?? (0x00000002, 0x00000000) from gamemode.amx
[18:52:02] [debug] #3 0000d398 in public YSF_OnPlayerDisconnect (0x00000002, 0x00000000) from gamemode.amx
[18:52:02] [debug] #4 000082fc in public Streamer_OnPlayerDisconnect (0x00000002, 0x00000000) from gamemode.amx
[18:52:02] [debug] #5 00007e38 in public SSCANF_OnPlayerDisconnect (0x00000002, 0x00000000) from gamemode.amx
[18:52:02] [debug] #6 000022d4 in public Itter_OnPlayerDisconnect (0x00000002, 0x00000000) from gamemode.amx
[18:52:02] [debug] #7 0000191c in public OnPlayerDisconnect (0x00000002, 0x00000000) from gamemode.amx
[18:52:02] [debug] Native backtrace:
[18:52:02] [debug] #0 02e03779 in ?? () from plugins\YSF.DLL
[18:52:02] [debug] #1 6bfb49ca in ?? () from plugins\crashdetect.DLL
[18:52:02] [debug] #2 6bfb681f in ?? () from plugins\crashdetect.DLL
[18:52:02] [debug] #3 6bfa9b84 in ?? () from plugins\crashdetect.DLL
[18:52:02] [debug] #4 6bfb4a1a in ?? () from plugins\crashdetect.DLL
[18:52:02] [debug] #5 0046ceab in ?? () from samp-server.exe
Thanks in advance
Did you re-compiled your mode with YSF.inc? Please, send me crashinfo.txt, which conaints more information about this crash.
Reply
#73

Quote:
Originally Posted by kurta999
Посмотреть сообщение
Did you re-compiled your mode with YSF.inc? Please, send me crashinfo.txt, which conaints more information about this crash.
Yes, I did, I am using YSI.inc from R4.

Here's crashinfo.txt:
Код:
--------------------------

SA-MP Server: 0.3z-R2



Exception At Address: 0x0046CEAB Module: (samp-server.exe)



Registers:

EAX: 0x3C03126F	EBX: 0x00000001	ECX: 0x00000000	EDX: 0x005812CE

ESI: 0x054F72C8	EDI: 0x00000002	EBP: 0x00000000	ESP: 0x0018FC98

EFLAGS: 0x00010207



Stack:

+0000: 0x0060A268   0x0018FCB8   0x0000002A   0x0060A268

+0010: 0x00000002   0x0060A268   0x00000000   0x00000002

+0020: 0x00000000   0x0000002A   0x0046616E   0x00000002

+0030: 0x00000000   0x74E410FF   0x02149470   0x005841E8

+0040: 0x00000000   0x74E410FF   0x00000000   0x02149470

+0050: 0x02149470   0x00000000   0x6F6E6E00   0x65636E75

+0060: 0x6BFB5800   0x0060A268   0x00000000   0x0000000F

+0070: 0x02140E20   0x6F6E6E61   0x65636E75   0x00000000

+0080: 0x00000000   0x00000000   0x00000000   0x00000000

+0090: 0x00000000   0x00000000   0x00000000   0x00000000

+00A0: 0x00000000   0x00000000   0x00000000   0x00000000

+00B0: 0x02148FA8   0x02B00020   0x00000000   0x00057F87

+00C0: 0x02B00020   0x00000000   0x00057F89   0x00000000

+00D0: 0x0018FE24   0x6BE115E3   0x0018FDF4   0xC0876A8C

+00E0: 0x02148FA8   0x00581DB8   0x6BE1173F   0x00000000

+00F0: 0x00000000   0x00000000   0x7715F8D1   0x74DF14AB

+0100: 0x0000009C   0x00000000   0x74DF14DE   0xC0ABF92F

+0110: 0x74E41136   0x0000009C   0x00000000   0x7715FD91

+0120: 0x74DF3BD5   0x00000000   0x74DF3C01   0xC0ABFACF

+0130: 0x74E41136   0x74E41691   0x00000000   0x00000024



--------------------------



Loaded Modules:

samp-server.exe	A: 0x00400000 - 0x004F5000	(C:\Program Files (x86)\SAMP SERVER\samp-server.exe)

ntdll.dll	A: 0x77140000 - 0x772C0000	(C:\Windows\SysWOW64\ntdll.dll)

kernel32.dll	A: 0x74E30000 - 0x74F40000	(C:\Windows\syswow64\kernel32.dll)

KERNELBASE.dll	A: 0x74DE0000 - 0x74E27000	(C:\Windows\syswow64\KERNELBASE.dll)

SHELL32.dll	A: 0x75000000 - 0x75C4A000	(C:\Windows\syswow64\SHELL32.dll)

msvcrt.dll	A: 0x74F40000 - 0x74FEC000	(C:\Windows\syswow64\msvcrt.dll)

SHLWAPI.dll	A: 0x767D0000 - 0x76827000	(C:\Windows\syswow64\SHLWAPI.dll)

GDI32.dll	A: 0x76BC0000 - 0x76C50000	(C:\Windows\syswow64\GDI32.dll)

USER32.dll	A: 0x74C00000 - 0x74D00000	(C:\Windows\syswow64\USER32.dll)

ADVAPI32.dll	A: 0x75DE0000 - 0x75E80000	(C:\Windows\syswow64\ADVAPI32.dll)

sechost.dll	A: 0x74D00000 - 0x74D19000	(C:\Windows\SysWOW64\sechost.dll)

RPCRT4.dll	A: 0x76C50000 - 0x76D40000	(C:\Windows\syswow64\RPCRT4.dll)

SspiCli.dll	A: 0x74B70000 - 0x74BD0000	(C:\Windows\syswow64\SspiCli.dll)

CRYPTBASE.dll	A: 0x74B60000 - 0x74B6C000	(C:\Windows\syswow64\CRYPTBASE.dll)

LPK.dll	A: 0x76320000 - 0x7632A000	(C:\Windows\syswow64\LPK.dll)

USP10.dll	A: 0x75EF0000 - 0x75F8D000	(C:\Windows\syswow64\USP10.dll)

WSOCK32.dll	A: 0x73680000 - 0x73687000	(C:\Windows\system32\WSOCK32.dll)

WS2_32.dll	A: 0x75EB0000 - 0x75EE5000	(C:\Windows\syswow64\WS2_32.dll)

NSI.dll	A: 0x76310000 - 0x76316000	(C:\Windows\syswow64\NSI.dll)

WINMM.dll	A: 0x72360000 - 0x72392000	(C:\Windows\system32\WINMM.dll)

IMM32.DLL	A: 0x76B60000 - 0x76BC0000	(C:\Windows\system32\IMM32.DLL)

MSCTF.dll	A: 0x76970000 - 0x76A3C000	(C:\Windows\syswow64\MSCTF.dll)

sscanf.DLL	A: 0x10000000 - 0x1000D000	(C:\Program Files (x86)\SAMP SERVER\plugins\sscanf.DLL)

MSVCR100.dll	A: 0x6C3E0000 - 0x6C49F000	(C:\Windows\system32\MSVCR100.dll)

streamer.DLL	A: 0x74120000 - 0x7415F000	(C:\Program Files (x86)\SAMP SERVER\plugins\streamer.DLL)

MSVCP100.dll	A: 0x6BFD0000 - 0x6C039000	(C:\Windows\system32\MSVCP100.dll)

mysql.DLL	A: 0x6BE10000 - 0x6BE53000	(C:\Program Files (x86)\SAMP SERVER\plugins\mysql.DLL)

LIBMYSQL.dll	A: 0x02790000 - 0x029CE000	(C:\Program Files (x86)\SAMP SERVER\LIBMYSQL.dll)

MSVCP110.dll	A: 0x6BD20000 - 0x6BDA5000	(C:\Windows\system32\MSVCP110.dll)

MSVCR110.dll	A: 0x6B7D0000 - 0x6B8A2000	(C:\Windows\system32\MSVCR110.dll)

NLAapi.dll	A: 0x70700000 - 0x70710000	(C:\Windows\system32\NLAapi.dll)

napinsp.dll	A: 0x74A90000 - 0x74AA0000	(C:\Windows\system32\napinsp.dll)

pnrpnsp.dll	A: 0x74700000 - 0x74712000	(C:\Windows\system32\pnrpnsp.dll)

mswsock.dll	A: 0x71E70000 - 0x71EAC000	(C:\Windows\System32\mswsock.dll)

DNSAPI.dll	A: 0x73260000 - 0x732A4000	(C:\Windows\system32\DNSAPI.dll)

winrnr.dll	A: 0x746F0000 - 0x746F8000	(C:\Windows\System32\winrnr.dll)

WLIDNSP.DLL	A: 0x70410000 - 0x70437000	(C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live\WLIDNSP.DLL)

PSAPI.DLL	A: 0x767C0000 - 0x767C5000	(C:\Windows\syswow64\PSAPI.DLL)

rasadhlp.dll	A: 0x70360000 - 0x70366000	(C:\Windows\system32\rasadhlp.dll)

Whirlpool.DLL	A: 0x002E0000 - 0x002EC000	(C:\Program Files (x86)\SAMP SERVER\plugins\Whirlpool.DLL)

MSVCR80.dll	A: 0x72000000 - 0x7209B000	(C:\Windows\WinSxS\x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.6195_none_d09154e044272b9a\MSVCR80.dll)

YSF.DLL	A: 0x02E00000 - 0x02EB0000	(C:\Program Files (x86)\SAMP SERVER\plugins\YSF.DLL)

dbghelp.dll	A: 0x6BE60000 - 0x6BF4B000	(C:\Windows\system32\dbghelp.dll)

wshtcpip.dll	A: 0x71E60000 - 0x71E65000	(C:\Windows\System32\wshtcpip.dll)

IPHLPAPI.DLL	A: 0x733E0000 - 0x733FC000	(C:\Windows\system32\IPHLPAPI.DLL)

WINNSI.DLL	A: 0x733D0000 - 0x733D7000	(C:\Windows\system32\WINNSI.DLL)

uxtheme.dll	A: 0x714B0000 - 0x71530000	(C:\Windows\system32\uxtheme.dll)

PROPSYS.dll	A: 0x71300000 - 0x713F5000	(C:\Windows\system32\PROPSYS.dll)

OLEAUT32.dll	A: 0x76AD0000 - 0x76B5F000	(C:\Windows\syswow64\OLEAUT32.dll)

comctl32.dll	A: 0x71530000 - 0x716CE000	(C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.17514_none_41e6975e2bd6f2b2\comctl32.dll)

apphelp.dll	A: 0x731F0000 - 0x7323C000	(C:\Windows\system32\apphelp.dll)

CLBCatQ.DLL	A: 0x768D0000 - 0x76953000	(C:\Windows\syswow64\CLBCatQ.DLL)

api-ms-win-downlevel-advapi32-l1-1-0.dll	A: 0x76960000 - 0x76965000	(C:\Windows\syswow64\api-ms-win-downlevel-advapi32-l1-1-0.dll)

api-ms-win-downlevel-shlwapi-l1-1-0.dll	A: 0x74D20000 - 0x74D24000	(C:\Windows\syswow64\api-ms-win-downlevel-shlwapi-l1-1-0.dll)

ntmarta.dll	A: 0x712D0000 - 0x712F1000	(C:\Windows\system32\ntmarta.dll)

WLDAP32.dll	A: 0x75D90000 - 0x75DD5000	(C:\Windows\syswow64\WLDAP32.dll)

profapi.dll	A: 0x72990000 - 0x7299B000	(C:\Windows\system32\profapi.dll)

Secur32.dll	A: 0x71460000 - 0x71468000	(C:\Windows\system32\Secur32.dll)

SETUPAPI.dll	A: 0x76500000 - 0x7669D000	(C:\Windows\syswow64\SETUPAPI.dll)

CFGMGR32.dll	A: 0x75E80000 - 0x75EA7000	(C:\Windows\syswow64\CFGMGR32.dll)

DEVOBJ.dll	A: 0x74BE0000 - 0x74BF2000	(C:\Windows\syswow64\DEVOBJ.dll)

api-ms-win-downlevel-advapi32-l2-1-0.dll	A: 0x71450000 - 0x71454000	(C:\Windows\system32\api-ms-win-downlevel-advapi32-l2-1-0.dll)



--------------------------

SA-MP Server: 0.3z-R2



Exception At Address: 0x0046CEAB Module: (samp-server.exe)



Registers:

EAX: 0x3C03126F	EBX: 0x00000001	ECX: 0x00000000	EDX: 0x003004A0

ESI: 0x053772C8	EDI: 0x00000002	EBP: 0x00000000	ESP: 0x0018FC98

EFLAGS: 0x00010207



Stack:

+0000: 0x0038A268   0x0018FCB8   0x0000002A   0x0038A268

+0010: 0x00000002   0x0038A268   0x00000000   0x00000002

+0020: 0x00000000   0x0000002A   0x0046616E   0x00000002

+0030: 0x00000000   0x74E410FF   0x002B9470   0x00304388

+0040: 0x00000000   0x74E410FF   0x00000000   0x002B9470

+0050: 0x003042A8   0x00000000   0x6F000000   0x00000200

+0060: 0x00000200   0x00000200   0x035D0160   0x00000000

+0070: 0x002B0E20   0x6F6E6E61   0x65636E75   0x00000000

+0080: 0x00000000   0x00000000   0x00000000   0x00000000

+0090: 0x00000000   0x00000000   0x00000000   0x00000000

+00A0: 0x00000000   0x00000000   0x00000000   0x00000000

+00B0: 0x002B8FA8   0x02AD0020   0x00000000   0x00067F88

+00C0: 0x02AD0020   0x00000000   0x00067F89   0x00000000

+00D0: 0x00000000   0x002B0000   0x003042A8   0x70EA55AC

+00E0: 0x002B8FA8   0x006E0015   0x000017CF   0x00000000

+00F0: 0x00000000   0x00000000   0x00303FD0   0x00000001

+0100: 0x003042A0   0x0018FDB4   0x7716E023   0x003042A8

+0110: 0x002B9470   0x00000000   0x003042A0   0x0018FDC8

+0120: 0x74E414AD   0x002B0000   0x00000000   0x003042A8

+0130: 0x0018FE04   0x00494311   0x002B0000   0x00000000



--------------------------



Loaded Modules:

samp-server.exe	A: 0x00400000 - 0x004F5000	(C:\Program Files (x86)\SAMP SERVER\samp-server.exe)

ntdll.dll	A: 0x77140000 - 0x772C0000	(C:\Windows\SysWOW64\ntdll.dll)

kernel32.dll	A: 0x74E30000 - 0x74F40000	(C:\Windows\syswow64\kernel32.dll)

KERNELBASE.dll	A: 0x74DE0000 - 0x74E27000	(C:\Windows\syswow64\KERNELBASE.dll)

SHELL32.dll	A: 0x75000000 - 0x75C4A000	(C:\Windows\syswow64\SHELL32.dll)

msvcrt.dll	A: 0x74F40000 - 0x74FEC000	(C:\Windows\syswow64\msvcrt.dll)

SHLWAPI.dll	A: 0x767D0000 - 0x76827000	(C:\Windows\syswow64\SHLWAPI.dll)

GDI32.dll	A: 0x76BC0000 - 0x76C50000	(C:\Windows\syswow64\GDI32.dll)

USER32.dll	A: 0x74C00000 - 0x74D00000	(C:\Windows\syswow64\USER32.dll)

ADVAPI32.dll	A: 0x75DE0000 - 0x75E80000	(C:\Windows\syswow64\ADVAPI32.dll)

sechost.dll	A: 0x74D00000 - 0x74D19000	(C:\Windows\SysWOW64\sechost.dll)

RPCRT4.dll	A: 0x76C50000 - 0x76D40000	(C:\Windows\syswow64\RPCRT4.dll)

SspiCli.dll	A: 0x74B70000 - 0x74BD0000	(C:\Windows\syswow64\SspiCli.dll)

CRYPTBASE.dll	A: 0x74B60000 - 0x74B6C000	(C:\Windows\syswow64\CRYPTBASE.dll)

LPK.dll	A: 0x76320000 - 0x7632A000	(C:\Windows\syswow64\LPK.dll)

USP10.dll	A: 0x75EF0000 - 0x75F8D000	(C:\Windows\syswow64\USP10.dll)

WSOCK32.dll	A: 0x73680000 - 0x73687000	(C:\Windows\system32\WSOCK32.dll)

WS2_32.dll	A: 0x75EB0000 - 0x75EE5000	(C:\Windows\syswow64\WS2_32.dll)

NSI.dll	A: 0x76310000 - 0x76316000	(C:\Windows\syswow64\NSI.dll)

WINMM.dll	A: 0x72360000 - 0x72392000	(C:\Windows\system32\WINMM.dll)

IMM32.DLL	A: 0x76B60000 - 0x76BC0000	(C:\Windows\system32\IMM32.DLL)

MSCTF.dll	A: 0x76970000 - 0x76A3C000	(C:\Windows\syswow64\MSCTF.dll)

sscanf.DLL	A: 0x10000000 - 0x1000D000	(C:\Program Files (x86)\SAMP SERVER\plugins\sscanf.DLL)

MSVCR100.dll	A: 0x6B6C0000 - 0x6B77F000	(C:\Windows\system32\MSVCR100.dll)

streamer.DLL	A: 0x6B800000 - 0x6B83F000	(C:\Program Files (x86)\SAMP SERVER\plugins\streamer.DLL)

MSVCP100.dll	A: 0x6B790000 - 0x6B7F9000	(C:\Windows\system32\MSVCP100.dll)

mysql.DLL	A: 0x6B670000 - 0x6B6B3000	(C:\Program Files (x86)\SAMP SERVER\plugins\mysql.DLL)

LIBMYSQL.dll	A: 0x026A0000 - 0x028DE000	(C:\Program Files (x86)\SAMP SERVER\LIBMYSQL.dll)

MSVCP110.dll	A: 0x6B5E0000 - 0x6B665000	(C:\Windows\system32\MSVCP110.dll)

MSVCR110.dll	A: 0x6B500000 - 0x6B5D2000	(C:\Windows\system32\MSVCR110.dll)

NLAapi.dll	A: 0x70700000 - 0x70710000	(C:\Windows\system32\NLAapi.dll)

napinsp.dll	A: 0x74A90000 - 0x74AA0000	(C:\Windows\system32\napinsp.dll)

pnrpnsp.dll	A: 0x74700000 - 0x74712000	(C:\Windows\system32\pnrpnsp.dll)

mswsock.dll	A: 0x71E70000 - 0x71EAC000	(C:\Windows\System32\mswsock.dll)

DNSAPI.dll	A: 0x73260000 - 0x732A4000	(C:\Windows\system32\DNSAPI.dll)

winrnr.dll	A: 0x746F0000 - 0x746F8000	(C:\Windows\System32\winrnr.dll)

WLIDNSP.DLL	A: 0x70410000 - 0x70437000	(C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live\WLIDNSP.DLL)

PSAPI.DLL	A: 0x767C0000 - 0x767C5000	(C:\Windows\syswow64\PSAPI.DLL)

rasadhlp.dll	A: 0x70360000 - 0x70366000	(C:\Windows\system32\rasadhlp.dll)

Whirlpool.DLL	A: 0x01EE0000 - 0x01EEC000	(C:\Program Files (x86)\SAMP SERVER\plugins\Whirlpool.DLL)

MSVCR80.dll	A: 0x72000000 - 0x7209B000	(C:\Windows\WinSxS\x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.6195_none_d09154e044272b9a\MSVCR80.dll)

YSF.DLL	A: 0x02CD0000 - 0x02D80000	(C:\Program Files (x86)\SAMP SERVER\plugins\YSF.DLL)

dbghelp.dll	A: 0x6BE60000 - 0x6BF4B000	(C:\Windows\system32\dbghelp.dll)

wshtcpip.dll	A: 0x71E60000 - 0x71E65000	(C:\Windows\System32\wshtcpip.dll)

IPHLPAPI.DLL	A: 0x733E0000 - 0x733FC000	(C:\Windows\system32\IPHLPAPI.DLL)

WINNSI.DLL	A: 0x733D0000 - 0x733D7000	(C:\Windows\system32\WINNSI.DLL)

uxtheme.dll	A: 0x714B0000 - 0x71530000	(C:\Windows\system32\uxtheme.dll)

PROPSYS.dll	A: 0x71300000 - 0x713F5000	(C:\Windows\system32\PROPSYS.dll)

OLEAUT32.dll	A: 0x76AD0000 - 0x76B5F000	(C:\Windows\syswow64\OLEAUT32.dll)

comctl32.dll	A: 0x71530000 - 0x716CE000	(C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.17514_none_41e6975e2bd6f2b2\comctl32.dll)

apphelp.dll	A: 0x731F0000 - 0x7323C000	(C:\Windows\system32\apphelp.dll)

CLBCatQ.DLL	A: 0x768D0000 - 0x76953000	(C:\Windows\syswow64\CLBCatQ.DLL)

api-ms-win-downlevel-advapi32-l1-1-0.dll	A: 0x76960000 - 0x76965000	(C:\Windows\syswow64\api-ms-win-downlevel-advapi32-l1-1-0.dll)

api-ms-win-downlevel-shlwapi-l1-1-0.dll	A: 0x74D20000 - 0x74D24000	(C:\Windows\syswow64\api-ms-win-downlevel-shlwapi-l1-1-0.dll)

SETUPAPI.dll	A: 0x76500000 - 0x7669D000	(C:\Windows\syswow64\SETUPAPI.dll)

CFGMGR32.dll	A: 0x75E80000 - 0x75EA7000	(C:\Windows\syswow64\CFGMGR32.dll)

DEVOBJ.dll	A: 0x74BE0000 - 0x74BF2000	(C:\Windows\syswow64\DEVOBJ.dll)

ntmarta.dll	A: 0x712D0000 - 0x712F1000	(C:\Windows\system32\ntmarta.dll)

WLDAP32.dll	A: 0x75D90000 - 0x75DD5000	(C:\Windows\syswow64\WLDAP32.dll)

profapi.dll	A: 0x72990000 - 0x7299B000	(C:\Windows\system32\profapi.dll)

Secur32.dll	A: 0x71460000 - 0x71468000	(C:\Windows\system32\Secur32.dll)

api-ms-win-downlevel-advapi32-l2-1-0.dll	A: 0x71450000 - 0x71454000	(C:\Windows\system32\api-ms-win-downlevel-advapi32-l2-1-0.dll)
Reply
#74

Interesting.. I'll add some security checks for these functions, but for me everything is okey.

Anyway, if everything is okey, R5 will be here at weekend with support per-player gang zones and some bug fixes. Will be able to create 1024 gang zones per-player
Reply
#75

Quote:
Originally Posted by kurta999
Посмотреть сообщение
Interesting.. I'll add some security checks for these functions, but for me everything is okey.

Anyway, if everything is okey, R5 will be here at weekend with support per-player gang zones and some bug fixed. Will be able to create 1024 gang zones per-player
Forgot to mention that everything works fine, until server is up for a longer while.

1024 gang zones? Omg, gang wars server dream whole sa full with gang zones.
Now I guess when next time I log in gang wars server I won't be able to see minimap
Reply
#76

Anyway, did you use SetPlayerGravity() under OnPlayerDisconenct() ?
Reply
#77

Indirectly, but yes. That might be causing crashes?
I have one function that sets up players for minigames and removes all stuff applied when player was not in minigame, including gravity. ( resets to default).
And it appears ( not sure why) it is under OnPlayerDisconnect...
Reply
#78

I have one suggestion.

pawn Code:
forward OnPlayerLeavePickup(playerid, pickupid);
@Above:

You don't really need to reset the gravity on OnPlayerDisconnect. Just set gravity to default whenever player connects OR spawns? I believe it resets by itself when player disconnects (not sure about this).
Reply
#79

Hm.. This callback is interesting, I'll try to do it

You do not need to reset player gravity both when player connect or disconnect. If player connect, then player gravity will be change for server gravity. If disconnect, then player will be removed from plugin so it doesn't matter.
Reply
#80

Quote:
Originally Posted by kurta999
View Post
Hm.. This callback is interesting, I'll try to do it

You do not need to reset player gravity both when player connect or disconnect. If player connect, then player gravity will be change for server gravity. If disconnect, then player will be removed from plugin so it doesn't matter.
Listen, I am using same function that contains setgravityforplayer when they disconnect and when they join dm's and stuff. That function is responsible for removing attached objects... making game fair.

As well that function is under OnPlayerDisconnect because it would look bad if player sticked objects would stay after they quit the game.

Question:
What does IsPlayerConnected return under OnPlayerDisconnect?
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)