[Include] IP Lookup Script
#17

Quote:
Originally Posted by muhsah007
Посмотреть сообщение
Код:
[02/06/2016 12:08:35] [join] xxxxxxx has joined the server (4:93.87.xxx.xxx)
[02/06/2016 12:08:35] [debug] Server crashed while executing GM.amx
[02/06/2016 12:08:35] [debug] AMX backtrace:
[02/06/2016 12:08:35] [debug] #0 native CallLocalFunction () from samp-server.exe
[02/06/2016 12:08:35] [debug] #1 000212b8 in public HTTP_OnLookupResponse (index=4, response=200, data[]=@007c125c "{"as":"AS8400 TELEKOM SRBIJA a.d.","city":"Belgrade","country":"Serbia","country...") at E:\Grand Theft Auto Server\pawno\include\ipl.inc:65
[02/06/2016 12:08:35] [debug] Native backtrace:
[02/06/2016 12:08:35] [debug] #0 0047467c in ?? () from samp-server.exe
[02/06/2016 12:08:35] [debug] #1 004010b6 in ?? () from samp-server.exe
[02/06/2016 12:08:35] [debug] #2 74e762ca in ?? () from plugins\crashdetect.dll
[02/06/2016 12:08:35] [debug] #3 74e78b28 in ?? () from plugins\crashdetect.dll
[02/06/2016 12:08:35] [debug] #4 74e709c7 in ?? () from plugins\crashdetect.dll
[02/06/2016 12:08:35] [debug] #5 74e7631a in ?? () from plugins\crashdetect.dll
[02/06/2016 12:08:35] [debug] #6 72c051b9 in ?? () from plugins\streamer.dll
[02/06/2016 12:08:35] [debug] #7 00480cd0 in ?? () from samp-server.exe
[02/06/2016 12:08:35] [debug] #8 004912c7 in ?? () from samp-server.exe
This include crashes my server whenever this player connects.
This is probably because the IP thats being passed has returned some sort of null data (some IPs may be missing a little bit of data). CallLocalFunction crashes if you pass a null string to it.

EDIT: just checked a random ip within the range in your message (93.87.22.22): the region name is empty, and thats what most likely causing it. I've made a fix for it below sorta.
Reply


Messages In This Thread
IP Lookup Script - by Banana_Ghost - 17.05.2016, 10:19
Re: IP Lookup Script - by JustMe.77 - 17.05.2016, 18:28
Re: IP Lookup Script - by Banana_Ghost - 18.05.2016, 08:50
Re: IP Lookup Script - by Miller007 - 18.05.2016, 08:55
Re: IP Lookup Script - by Zorono - 18.05.2016, 10:10
Re: IP Lookup Script - by justice96 - 18.05.2016, 10:15
Re: IP Lookup Script - by Banana_Ghost - 18.05.2016, 12:34
Respuesta: IP Lookup Script - by dannypanda05 - 18.05.2016, 13:09
Re: IP Lookup Script - by HydraHumza - 18.05.2016, 13:40
Re: IP Lookup Script - by Private200 - 18.05.2016, 16:00
Re: IP Lookup Script - by N0FeaR - 18.05.2016, 19:27
Re: IP Lookup Script - by muhsah007 - 02.06.2016, 20:49
Re: IP Lookup Script - by zSuYaNw - 02.06.2016, 21:04
Re: IP Lookup Script - by vannesenn - 02.06.2016, 22:19
Re: IP Lookup Script - by PT - 04.06.2016, 12:05
Re: IP Lookup Script - by muhsah007 - 04.06.2016, 18:13
Re: IP Lookup Script - by Banana_Ghost - 05.06.2016, 09:51
Re: IP Lookup Script - by Banana_Ghost - 05.06.2016, 09:55
Re: IP Lookup Script - by iLearner - 27.11.2016, 20:32
Re: IP Lookup Script - by GoldenMan - 29.08.2017, 13:25

Forum Jump:


Users browsing this thread: 1 Guest(s)