19.05.2014, 16:17
SetPlayerWeather crashes the server when YSF is loaded.
and in OnPlayerSpawn:
PS: You had mentioned that AttachPlayerObjectToObject needs testing and I got some time to do it. It works fine.
pawn Code:
[18:29:57] [debug] Server crashed while executing tests.amx
[18:29:58] [debug] AMX backtrace:
[18:29:58] [debug] #0 native SetPlayerWeather () [01323900] from YSF.dll
[18:29:58] [debug] #1 00001298 in public OnPlayerSpawn (playerid=0) at D:\samp03z\gamemodes\tests.pwn:87
[18:29:59] [debug] Native backtrace:
[18:29:59] [debug] #0 01323999 in ?? () from plugins\YSF.dll
[18:29:59] [debug] #1 01843a46 in ?? () from plugins\crashdetect.dll
[18:29:59] [debug] #2 018450fa in ?? () from plugins\crashdetect.dll
[18:29:59] [debug] #3 0183c7f3 in ?? () from plugins\crashdetect.dll
[18:29:59] [debug] #4 01843a96 in ?? () from plugins\crashdetect.dll
[18:29:59] [debug] #5 0046cf10 in ?? () from samp-server.exe
[18:29:59] [debug] #6 00000009 in ?? () from samp-server.exe
pawn Code:
SetPlayerWeather(playerid, 1);