Errors In Server Log -
Devon007 - 09.06.2015
I am Getting Disconnect From My Server
And Getting These Errors In Server Log
[12:15:37] [debug] Run time error 4: "Array index out of bounds"
[12:15:37] [debug] Accessing element at negative index -1
[12:15:37] [debug] AMX backtrace:
[12:15:37] [debug] #0 000be6e0 in ?? (-1) from CNR.amx
[12:15:37] [debug] #1 000be618 in ?? (-1, -1) from CNR.amx
[12:15:37] [debug] #2 000be3c8 in ?? (0, 2) from CNR.amx
[12:15:37] [debug] #3 0006c1c4 in public Itter_OnPlayerDisconnect (0, 0) from CNR.amx
[12:15:37] [debug] #4 000194dc in ?? (0, 0) from CNR.amx
[12:15:37] [debug] #5 0000d338 in public SSCANF_OnPlayerDisconnect (0, 0) from CNR.amx
[12:15:37] [debug] #6 native CallLocalFunction () from sampsvr-port_7807
[12:15:37] [debug] #7 00002210 in public OnPlayerDisconnect (0, 0) from CNR.amx
[12:15:37] [part] Devon007 has left the server (0:0)
Re: Errors In Server Log -
Konstantinos - 09.06.2015
Compile with -d3 flag:
https://github.com/Zeex/samp-plugin-...ith-debug-info
So it will give what functions are ?? and the exact lines. Run the server and when that happens, post the server log once again.
Re: Errors In Server Log -
Devon007 - 09.06.2015
----------
Loaded log file: "server_log.txt".
----------
SA-MP Dedicated Server
----------------------
v0.3.7, ©2005-2015 SA-MP Team
[12:57:40] password = "" (string)
[12:57:40]
[12:57:40] Server Plugins
[12:57:40] --------------
[12:57:40] Loading plugin: crashdetect.so
[12:57:40] CrashDetect v4.15.1 is OK.
[12:57:40] Loaded.
[12:57:40] Loading plugin: streamer.so
[12:57:40]
*** Streamer Plugin v2.7.5.1 by Incognito loaded ***
[12:57:40] Loaded.
[12:57:40] Loading plugin: socket.so
[12:57:40] Socket plugin v0.2b loaded.
[12:57:40] Loaded.
[12:57:40] Loading plugin: sscanf.so
[12:57:40]
[12:57:40] ===============================
[12:57:40] sscanf plugin loaded.
[12:57:40] Version: 2.8.1
[12:57:40] © 2012 Alex "******" Cole
[12:57:40] ===============================
[12:57:40] Loaded.
[12:57:40] Loading plugin: nativechecker.so
[12:57:40] Loaded.
[12:57:40] Loading plugin: MapAndreas.so
[12:57:40] Loaded.
[12:57:40] Loading plugin: whirlpool.so
[12:57:40]
[12:57:40] ==================
[12:57:40]
[12:57:40] Whirlpool loaded
[12:57:40]
[12:57:40] ==================
[12:57:40]
[12:57:40] Loaded.
[12:57:40] Loading plugin: mysql.so
[12:57:40]
> MySQL plugin R6 successfully loaded.
[12:57:40] Loaded.
[12:57:40] Loaded 8 plugins.
[12:57:40]
[12:57:40] Ban list
[12:57:40] --------
[12:57:40] Loaded: samp.ban
[12:57:40]
[12:57:40]
[12:57:40] Filterscripts
[12:57:40] ---------------
[12:57:40] Loading filterscript 'clothing.amx'...
[12:57:41]
[12:57:41]
[12:57:41]
[12:57:41] =======================================
[12:57:41] | |
[12:57:41] | YSI version 1.06.0002 |
[12:57:41] | By Alex "******" Cole |
[12:57:41] | |
[12:57:41] =======================================
[12:57:41]
[12:57:41]
[12:57:42]
[12:57:42] Loaded 1 filterscripts.
[12:57:43] Error: Function not registered: 'mysql_query'
[12:57:43] Error: Function not registered: 'mysql_debug'
[12:57:43] Error: Function not registered: 'mysql_store_result'
[12:57:43] Error: Function not registered: 'mysql_num_rows'
[12:57:43] Error: Function not registered: 'mysql_retrieve_row'
[12:57:43] Error: Function not registered: 'mysql_fetch_field_row'
[12:57:43] Error: Function not registered: 'mysql_free_result'
[12:57:43] Error: Function not registered: 'mysql_real_escape_string'
[12:57:43] Error: Function not registered: 'mysql_connect'
[12:57:43] Error: Function not registered: 'mysql_ping'
[12:57:43]
[12:57:43]
[12:57:43]
[12:57:43] =======================================
[12:57:43] | |
[12:57:43] | YSI version 3.09.0684 |
[12:57:43] | By Alex "******" Cole |
[12:57:43] | |
[12:57:43] =======================================
[12:57:43]
[12:57:43] [MYSQL]: Connection To `port_7807` Successful!
[12:57:50] [connection] 69.113.233.52:62089 requests connection cookie.
[12:57:50] SERVER: Codeshadow Cops And Robbers
[12:57:50] GAME MODE: Cops & Robbers
[12:57:50] MAP NAME: Los Santos
[12:57:50] VERSION: CnR Version (1.1)
[12:57:50] MAX PLAYER SLOTS: 40
[12:57:50] WEBSITE:
www.Svttdm.com
[12:57:50] Number of vehicle models: 121
[12:57:51] Incoming connection: 69.113.233.52:62089 id: 0
[12:57:52] [join] codeshadow has joined the server (0:69.113.233.52)
[12:58:18] [connection] 123.176.5.65:54897 requests connection cookie.
[12:58:19] Incoming connection: 123.176.5.65:54897 id: 1
[12:58:19] [join] [KT]MaximuS[KT] has joined the server (1:123.176.5.65)
[12:58:31] [debug] Run time error 4: "Array index out of bounds"
[12:58:31] [debug] Accessing element at negative index -1
[12:58:31] [debug] AMX backtrace:
[12:58:31] [debug] #0 000d7e9c in GroupMembers (groupid=-1) at C:\Users\Manas\Desktop\CNR.pwn:19966
[12:58:31] [debug] #1 000d7da0 in GroupCheck (groupid=-1, orderid=-1) at C:\Users\Manas\Desktop\CNR.pwn:19958
[12:58:31] [debug] #2 000d7aac in LeaveGroup (playerid=1, reason=2) at C:\Users\Manas\Desktop\CNR.pwn:19941
[12:58:31] [debug] #3 000714d8 in public Itter_OnPlayerDisconnect (playerid=1, reason=0) at C:\Users\Manas\Desktop\CNR.pwn:10338
[12:58:31] [debug] #4 00003e08 in public OnPlayerDisconnect (playerid=1, reason=0) at C:\Users\Manas\Desktop\0.3.7 pawno\pawno\include\YSI\y_iterate.inc:909
[12:58:31] [part] [KT]MaximuS[KT] has left the server (1:0)
[12:58:42] [connection] 123.176.5.65:54898 requests connection cookie.
[12:58:43] Incoming connection: 123.176.5.65:54898 id: 1
[12:58:44] [join] [KT]VictorY[KT] has joined the server (1:123.176.5.65)
Re: Errors In Server Log -
Konstantinos - 09.06.2015
Another member had problems with the same, read this:
https://sampforum.blast.hk/showthread.php?tid=575846
Also load nativechecker plugin last to get rid of "function not registered" messages.
Re: Errors In Server Log -
Devon007 - 09.06.2015
Now this
----------
Loaded log file: "server_log.txt".
----------
SA-MP Dedicated Server
----------------------
v0.3.7, ©2005-2015 SA-MP Team
[13:10:53] password = "" (string)
[13:10:53]
[13:10:53] Server Plugins
[13:10:53] --------------
[13:10:53] Loading plugin: crashdetect.so
[13:10:53] CrashDetect v4.15.1 is OK.
[13:10:53] Loaded.
[13:10:53] Loading plugin: streamer.so
[13:10:53]
*** Streamer Plugin v2.7.5.1 by Incognito loaded ***
[13:10:53] Loaded.
[13:10:53] Loading plugin: socket.so
[13:10:53] Socket plugin v0.2b loaded.
[13:10:53] Loaded.
[13:10:53] Loading plugin: sscanf.so
[13:10:53]
[13:10:53] ===============================
[13:10:53] sscanf plugin loaded.
[13:10:53] Version: 2.8.1
[13:10:53] © 2012 Alex "******" Cole
[13:10:53] ===============================
[13:10:53] Loaded.
[13:10:53] Loading plugin: MapAndreas.so
[13:10:53] Loaded.
[13:10:53] Loading plugin: whirlpool.so
[13:10:53]
[13:10:53] ==================
[13:10:53]
[13:10:53] Whirlpool loaded
[13:10:53]
[13:10:53] ==================
[13:10:53]
[13:10:53] Loaded.
[13:10:53] Loading plugin: mysql.so
[13:10:53]
> MySQL plugin R6 successfully loaded.
[13:10:53] Loaded.
[13:10:53] Loading plugin: nativechecker.so
[13:10:53] Loaded.
[13:10:53] Loaded 8 plugins.
[13:10:53]
[13:10:53] Ban list
[13:10:53] --------
[13:10:53] Loaded: samp.ban
[13:10:53]
[13:10:53]
[13:10:53] Filterscripts
[13:10:53] ---------------
[13:10:53] Loading filterscript 'clothing.amx'...
[13:10:55]
[13:10:55]
[13:10:55]
[13:10:55] =======================================
[13:10:55] | |
[13:10:55] | YSI version 1.06.0002 |
[13:10:55] | By Alex "******" Cole |
[13:10:55] | |
[13:10:55] =======================================
[13:10:55]
[13:10:55]
[13:10:55]
[13:10:55] Loaded 1 filterscripts.
[13:10:56]
[13:10:56]
[13:10:56]
[13:10:56] =======================================
[13:10:56] | |
[13:10:56] | YSI version 3.09.0684 |
[13:10:56] | By Alex "******" Cole |
[13:10:56] | |
[13:10:56] =======================================
[13:10:56]
[13:10:56] [MYSQL]: Connection To `port_7807` Successful!
[13:11:03] SERVER: Codeshadow Cops And Robbers
[13:11:03] GAME MODE: Cops & Robbers
[13:11:03] MAP NAME: Los Santos
[13:11:03] VERSION: CnR Version (1.1)
[13:11:03] MAX PLAYER SLOTS: 40
[13:11:03] WEBSITE:
www.Svttdm.com
[13:11:03] Number of vehicle models: 121
[13:11:03]
[13:11:03] ==========================================
[13:11:03] | |
[13:11:03] | A new version (v3.09.0684) of YSI is |
[13:11:03] | available from: |
[13:11:03] | |
[13:11:03] |
www.y-less.com/YSI/YSI_1.0.zip |
[13:11:03] | |
[13:11:03] | Changelog: |
[13:11:03] | |
[13:11:03] | 3.00.0000: |
[13:11:03] | |
[13:11:03] | YSI 3.0 released! Now includes the |
[13:11:03] | "y_text" library for better messages, |
[13:11:03] | and a reworked "y_classes" library. |
[13:11:03] | Largely documented here |
[13:11:03] | "http://forum.sa-mp.com/showthread.php |
[13:11:03] | ?t=321092". |
[13:11:03] | |
[13:11:03] | 3.01.0002: |
[13:11:03] | |
[13:11:03] | Small fixes to "y_text" and |
[13:11:03] | "y_classes". |
[13:11:03] | |
[13:11:03] | 3.09.0684: |
[13:11:03] | |
[13:11:03] | Reverted to old download location. |
[13:11:03] | Improved (and fixed) version checks; |
[13:11:03] | added y_bitmap, y_areas, y_races, |
[13:11:03] | y_zonenames, better documentation; |
[13:11:03] | MANY other bug fixes - see the github |
[13:11:03] | repository for more details: |
[13:11:03] | |
[13:11:03] ==========================================
[13:11:03]
[13:11:05] [connection] 69.113.233.52:57527 requests connection cookie.
[13:11:06] Incoming connection: 69.113.233.52:57527 id: 0
[13:11:07] [join] codeshadow has joined the server (0:69.113.233.52)
[13:11:09] [connection] 123.176.5.65:54014 requests connection cookie.
[13:11:10] Incoming connection: 123.176.5.65:54014 id: 1
[13:11:11] [join] [KT]VictorY[KT] has joined the server (1:123.176.5.65)
[13:11:15] [KT]VictorY[KT] (1) Kicked By: SERVER
[13:11:15] [debug] Run time error 4: "Array index out of bounds"
[13:11:15] [debug] Accessing element at negative index -1
[13:11:15] [debug] AMX backtrace:
[13:11:15] [debug] #0 000d7ea0 in GroupMembers (groupid=-1) at C:\Users\Manas\Desktop\CNR.pwn:19966
[13:11:15] [debug] #1 000d7da4 in GroupCheck (groupid=-1, orderid=-1) at C:\Users\Manas\Desktop\CNR.pwn:19958
[13:11:15] [debug] #2 000d7ab0 in LeaveGroup (playerid=1, reason=2) at C:\Users\Manas\Desktop\CNR.pwn:19941
[13:11:15] [debug] #3 000714dc in public Itter_OnPlayerDisconnect (playerid=1, reason=2) at C:\Users\Manas\Desktop\CNR.pwn:10338
[13:11:15] [debug] #4 00003e08 in public OnPlayerDisconnect (playerid=1, reason=2) at C:\Users\Manas\Desktop\0.3.7 pawno\pawno\include\YSI\y_iterate.inc:909
[13:11:15] [debug] #5 native Kick () from sampsvr-port_7807
[13:11:15] [debug] #6 001c0128 in KickPlayer (playerid=1, KickerName[]=@009e5f80 "SERVER", KickerDisplayName[]=@009e5f9c "SERVER", Reason[]=@009e5fb8 "Failed To Login!") at C:\Users\Manas\Desktop\CNR.pwn:38713
[13:11:15] [debug] #7 00075130 in public OnPlayerRequestSpawn (playerid=1) at C:\Users\Manas\Desktop\CNR.pwn:10595
[13:11:15] [part] [KT]VictorY[KT] has left the server (1:2)
Re: Errors In Server Log -
Konstantinos - 09.06.2015
Err, you changed nothing. I have linked you to a thread with exact the same problem and you ignoring it?
I have said what you have to change in there:
http://forum.sa-mp.com/showpost.php?...4&postcount=16
http://forum.sa-mp.com/showpost.php?...6&postcount=19
Re: Errors In Server Log -
Devon007 - 09.06.2015
[13:57:00] [debug] Run time error 4: "Array index out of bounds"
[13:57:00] [debug] Accessing element at negative index -1
[13:57:00] [debug] AMX backtrace:
[13:57:00] [debug] #0 000d84cc in SendMessageToAllGroupMembers (groupid=-1, text[]=@00ab963c "(GROUP MSG) [SvT]eddyisapro (1) has left Group (Disconnected).") at C:\Users\Manas\Desktop\CNR.pwn:19994
[13:57:00] [debug] #1 000d7dd4 in LeaveGroup (playerid=1, reason=2) at C:\Users\Manas\Desktop\CNR.pwn:19953
[13:57:00] [debug] #2 000714dc in public Itter_OnPlayerDisconnect (playerid=1, reason=1) at C:\Users\Manas\Desktop\CNR.pwn:10338
[13:57:00] [debug] #3 00003e08 in public OnPlayerDisconnect (playerid=1, reason=1) at C:\Users\Manas\Desktop\0.3.7 pawno\pawno\include\YSI\y_iterate.inc:909
[13:57:00] [part] [SvT]eddyisapro has left the server (1:1)
[13:58:18] [connection] 101.186.36.209:63407 requests connection cookie.
[13:58:19] Incoming connection: 101.186.36.209:63407 id: 1
[13:58:22] [join] [SvT]eddyisapro has joined the server (1:101.186.36.209)
Re: Errors In Server Log -
Konstantinos - 09.06.2015
Post SendMessageToAllGroupMembers function.
Re: Errors In Server Log -
Devon007 - 09.06.2015
Here
Код:
stock SendMessageToAllGroupMembers(groupid, text[])
{
if(!Groupinfo[groupid][active]) return 0;
for(new x; x < MAX_PLAYERS; x++)
{
if(Group[x][gid] == groupid)
{
SendClientMessage(x, COLOR_GOLD, text);
}
}
return 1;
}
Re: Errors In Server Log -
Konstantinos - 09.06.2015
PHP код:
SendMessageToAllGroupMembers(groupid, text[])
{
if (!(0 <= groupid < sizeof (GroupInfo))) return 0;
if(!Groupinfo[groupid][active]) return 0;
for(new x; x < MAX_PLAYERS; x++)
{
if(Group[x][gid] == groupid)
{
SendClientMessage(x, COLOR_GOLD, text);
}
}
return 1;
}