Some Error in Gamemode
#1

Код:
SA-MP Dedicated Server
----------------------
v0.3z, ©2005-2014 SA-MP Team

[12:20:31] 
[12:20:31] Server Plugins
[12:20:31] --------------
[12:20:31]  Loading plugin: crashdetect
[12:20:31]   CrashDetect v4.14 is OK.
[12:20:31]   Loaded.
[12:20:31]  Loading plugin: nativechecker
[12:20:31]   Loaded.
[12:20:31]  Loading plugin: streamer
[12:20:31]   Loaded.
[12:20:31]  Loading plugin: sscanf
[12:20:31] 

[12:20:31]  ===============================

[12:20:31]       sscanf plugin loaded.     

[12:20:31]          Version:  2.8.1        

[12:20:31]    © 2012 Alex "******" Cole  

[12:20:31]  ===============================

[12:20:31]   Loaded.
[12:20:31]  Loading plugin: FileManager
[12:20:31] ******************
[12:20:31] ** FILE MANAGER **
[12:20:31] **    Loaded    **
[12:20:31] ** Version 1.4 **
[12:20:31] ******************
[12:20:31]   Loaded.
[12:20:31]  Loaded 5 plugins.

[12:20:31] 
[12:20:31] Filterscripts
[12:20:31] ---------------
[12:20:31]   Loading filterscript 'bugrep.amx'...
[12:20:31]   Loading filterscript 'knpc.amx'...
[12:20:31]    Error: Function not registered: 'file_create'
[12:20:31]    Error: Function not registered: 'file_exists'
[12:20:31]    Error: Function not registered: 'file_delete'
[12:20:31]    Error: Function not registered: 'file_move'
[12:20:31] 
----------------------------------
[12:20:31] InGame NPC editor by Kurence loaded!
[12:20:31] ----------------------------------

[12:20:31]   Loaded 2 filterscripts.

[12:20:31]    Error: Function not registered: 'SSCANF_Init'
[12:20:31]    Error: Function not registered: 'SSCANF_Join'
[12:20:31]    Error: Function not registered: 'SSCANF_Leave'
[12:20:31]    Error: Function not registered: 'CreateDynamicMapIcon'
[12:20:31]    Error: Function not registered: 'CreateDynamicObject'
[12:20:31]    Error: Function not registered: 'TogglePlayerAllDynamicCPs'
[12:20:31]    Error: Function not registered: 'sscanf'
[12:20:31]    Error: Function not registered: 'CreateDynamicCP'
[12:20:31]    Error: Function not registered: 'CreateDynamicPickup'
[12:20:31]    Error: Function not registered: 'TogglePlayerDynamicCP'
[12:20:31] ||- Banks loaded: 0 -||
[12:20:31] 
----------------------------------
[12:20:31] Trucking Script Loaded
[12:20:31] ----------------------------------

[12:20:31] Number of vehicle models: 33
[12:21:16] Incoming connection: 192.168.42.40:54661
[12:21:16] [join] PHI.Stiker has joined the server (0:192.168.42.40)
[12:22:14] [death] PHI.Stiker died 255
Console input: kick PHI.Stiker
[12:22:38] PHI.Stiker <#0 - 192.168.42.40> has been kicked.
[12:22:38] [part] PHI.Stiker has left the server (0:1)
[12:22:38] [debug] Run time error 4: "Array index out of bounds"
[12:22:38] [debug]  Accessing element at negative index -1
[12:22:38] [debug] AMX backtrace:
[debug] #0 00097960 in public SSCANF_OnPlayerDisconnect () from scatrucking.amx
[debug] #1 000003ac in public OnPlayerDisconnect (0x00000000, 0x00000002) from scatrucking.amx
[12:22:38] [part] PHI.Stiker has left the server (0:2)

----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3z, ©2005-2014 SA-MP Team

[12:25:06] 
[12:25:06] Server Plugins
[12:25:06] --------------
[12:25:06]  Loading plugin: crashdetect
[12:25:06]   CrashDetect v4.14 is OK.
[12:25:06]   Loaded.
[12:25:06]  Loading plugin: nativechecker
[12:25:06]   Loaded.
[12:25:06]  Loading plugin: streamer
[12:25:06]   Loaded.
[12:25:06]  Loading plugin: sscanf
[12:25:06] 

[12:25:06]  ===============================

[12:25:06]       sscanf plugin loaded.     

[12:25:06]          Version:  2.8.1        

[12:25:06]    © 2012 Alex "******" Cole  

[12:25:06]  ===============================

[12:25:06]   Loaded.
[12:25:06]  Loading plugin: FileManager
[12:25:06] ******************
[12:25:06] ** FILE MANAGER **
[12:25:06] **    Loaded    **
[12:25:06] ** Version 1.4 **
[12:25:06] ******************
[12:25:06]   Loaded.
[12:25:06]  Loaded 5 plugins.

[12:25:06] 
[12:25:06] Filterscripts
[12:25:06] ---------------
[12:25:06]   Loading filterscript 'bugrep.amx'...
[12:25:06]   Loading filterscript 'knpc.amx'...
[12:25:06]    Error: Function not registered: 'file_create'
[12:25:06]    Error: Function not registered: 'file_exists'
[12:25:06]    Error: Function not registered: 'file_delete'
[12:25:06]    Error: Function not registered: 'file_move'
[12:25:06] 
----------------------------------
[12:25:06] InGame NPC editor by Kurence loaded!
[12:25:06] ----------------------------------

[12:25:07]   Loaded 2 filterscripts.

[12:25:07]    Error: Function not registered: 'SSCANF_Init'
[12:25:07]    Error: Function not registered: 'SSCANF_Join'
[12:25:07]    Error: Function not registered: 'SSCANF_Leave'
[12:25:07]    Error: Function not registered: 'CreateDynamicMapIcon'
[12:25:07]    Error: Function not registered: 'CreateDynamicObject'
[12:25:07]    Error: Function not registered: 'TogglePlayerAllDynamicCPs'
[12:25:07]    Error: Function not registered: 'sscanf'
[12:25:07]    Error: Function not registered: 'CreateDynamicCP'
[12:25:07]    Error: Function not registered: 'CreateDynamicPickup'
[12:25:07]    Error: Function not registered: 'TogglePlayerDynamicCP'
[12:25:07] ||- Banks loaded: 0 -||
[12:25:07] 
----------------------------------
[12:25:07] Trucking Script Loaded
[12:25:07] ----------------------------------

[12:25:07] Number of vehicle models: 33
[12:25:59] Incoming connection: 192.168.42.40:54468
[12:26:00] [join] PHI.Stiker has joined the server (0:192.168.42.40)
[12:26:18] [debug] Run time error 4: "Array index out of bounds"
[12:26:18] [debug]  Accessing element at negative index -1
[12:26:18] [debug] AMX backtrace:
[debug] #0 00097960 in public SSCANF_OnPlayerDisconnect (0x00000000, 0x00000001) from scatrucking.amx
[debug] #1 000003ac in public OnPlayerDisconnect (0x00000000, 0x00000001) from scatrucking.amx
[12:26:18] [part] PHI.Stiker has left the server (0:1)

----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3z, ©2005-2014 SA-MP Team

[12:27:36] 
[12:27:36] Server Plugins
[12:27:36] --------------
[12:27:36]  Loading plugin: crashdetect
[12:27:36]   CrashDetect v4.14 is OK.
[12:27:36]   Loaded.
[12:27:36]  Loading plugin: nativechecker
[12:27:36]   Loaded.
[12:27:36]  Loading plugin: streamer
[12:27:36]   Loaded.
[12:27:36]  Loading plugin: sscanf
[12:27:36] 

[12:27:36]  ===============================

[12:27:36]       sscanf plugin loaded.     

[12:27:36]          Version:  2.8.1        

[12:27:36]    © 2012 Alex "******" Cole  

[12:27:36]  ===============================

[12:27:36]   Loaded.
[12:27:36]  Loading plugin: FileManager
[12:27:36] ******************
[12:27:36] ** FILE MANAGER **
[12:27:36] **    Loaded    **
[12:27:36] ** Version 1.4 **
[12:27:36] ******************
[12:27:36]   Loaded.
[12:27:36]  Loaded 5 plugins.

[12:27:36] 
[12:27:36] Filterscripts
[12:27:36] ---------------
[12:27:36]   Loading filterscript 'bugrep.amx'...
[12:27:36]   Loading filterscript 'knpc.amx'...
[12:27:36]    Error: Function not registered: 'file_create'
[12:27:36]    Error: Function not registered: 'file_exists'
[12:27:36]    Error: Function not registered: 'file_delete'
[12:27:36]    Error: Function not registered: 'file_move'
[12:27:36] 
----------------------------------
[12:27:36] InGame NPC editor by Kurence loaded!
[12:27:36] ----------------------------------

[12:27:36]   Loaded 2 filterscripts.

[12:27:36]    Error: Function not registered: 'SSCANF_Init'
[12:27:36]    Error: Function not registered: 'SSCANF_Join'
[12:27:36]    Error: Function not registered: 'SSCANF_Leave'
[12:27:36]    Error: Function not registered: 'CreateDynamicMapIcon'
[12:27:36]    Error: Function not registered: 'CreateDynamicObject'
[12:27:36]    Error: Function not registered: 'TogglePlayerAllDynamicCPs'
[12:27:36]    Error: Function not registered: 'sscanf'
[12:27:36]    Error: Function not registered: 'CreateDynamicCP'
[12:27:36]    Error: Function not registered: 'CreateDynamicPickup'
[12:27:36]    Error: Function not registered: 'TogglePlayerDynamicCP'
[12:27:36] ||- Banks loaded: 0 -||
[12:27:36] 
----------------------------------
[12:27:36] Trucking Script Loaded
[12:27:36] ----------------------------------

[12:27:36] Number of vehicle models: 33
[12:28:11] Incoming connection: 192.168.42.40:59203
[12:28:12] [join] PHI.Stiker has joined the server (0:192.168.42.40)
[12:28:24] [debug] Run time error 4: "Array index out of bounds"
[12:28:24] [debug]  Accessing element at negative index -1
[12:28:24] [debug] AMX backtrace:
[debug] #0 00097960 in public SSCANF_OnPlayerDisconnect (0x00000000, 0x00000001) from scatrucking.amx
[debug] #1 000003ac in public OnPlayerDisconnect (0x00000000, 0x00000001) from scatrucking.amx
[12:28:24] [part] PHI.Stiker has left the server (0:1)

----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3z, ©2005-2014 SA-MP Team

[12:30:02] 
[12:30:02] Server Plugins
[12:30:02] --------------
[12:30:02]  Loading plugin: crashdetect
[12:30:02]   CrashDetect v4.14 is OK.
[12:30:02]   Loaded.
[12:30:02]  Loading plugin: nativechecker
[12:30:02]   Loaded.
[12:30:02]  Loading plugin: streamer
[12:30:02]   Loaded.
[12:30:02]  Loading plugin: sscanf
[12:30:02] 

[12:30:02]  ===============================

[12:30:02]       sscanf plugin loaded.     

[12:30:02]          Version:  2.8.1        

[12:30:02]    © 2012 Alex "******" Cole  

[12:30:02]  ===============================

[12:30:02]   Loaded.
[12:30:02]  Loading plugin: FileManager
[12:30:02] ******************
[12:30:02] ** FILE MANAGER **
[12:30:02] **    Loaded    **
[12:30:02] ** Version 1.4 **
[12:30:02] ******************
[12:30:02]   Loaded.
[12:30:02]  Loaded 5 plugins.

[12:30:02] 
[12:30:02] Filterscripts
[12:30:02] ---------------
[12:30:02]   Loading filterscript 'bugrep.amx'...
[12:30:02]   Loading filterscript 'knpc.amx'...
[12:30:02]    Error: Function not registered: 'file_create'
[12:30:02]    Error: Function not registered: 'file_exists'
[12:30:02]    Error: Function not registered: 'file_delete'
[12:30:02]    Error: Function not registered: 'file_move'
[12:30:02] 
----------------------------------
[12:30:02] InGame NPC editor by Kurence loaded!
[12:30:02] ----------------------------------

[12:30:02]   Loaded 2 filterscripts.

[12:30:02]    Error: Function not registered: 'SSCANF_Init'
[12:30:02]    Error: Function not registered: 'SSCANF_Join'
[12:30:02]    Error: Function not registered: 'SSCANF_Leave'
[12:30:02]    Error: Function not registered: 'CreateDynamicMapIcon'
[12:30:02]    Error: Function not registered: 'CreateDynamicObject'
[12:30:02]    Error: Function not registered: 'TogglePlayerAllDynamicCPs'
[12:30:02]    Error: Function not registered: 'sscanf'
[12:30:02]    Error: Function not registered: 'CreateDynamicCP'
[12:30:02]    Error: Function not registered: 'CreateDynamicPickup'
[12:30:02]    Error: Function not registered: 'TogglePlayerDynamicCP'
[12:30:02] ||- Banks loaded: 0 -||
[12:30:02] 
----------------------------------
[12:30:02] Trucking Script Loaded
[12:30:02] ----------------------------------

[12:30:02] Number of vehicle models: 33
[12:30:46] Incoming connection: 192.168.42.40:55831
[12:30:46] [join] HI.Stiker has joined the server (0:192.168.42.40)
[12:30:56] [debug] Run time error 4: "Array index out of bounds"
[12:30:56] [debug]  Accessing element at negative index -1
[12:30:56] [debug] AMX backtrace:
[debug] #0 0009790c in public SSCANF_OnPlayerDisconnect (0x00000000, 0x00000002) from scatrucking.amx
[debug] #1 000003ac in public OnPlayerDisconnect (0x00000000, 0x00000002) from scatrucking.amx
[debug] #2 native Kick () from samp-server.exe
[debug] #3 000b2460 in public OnDialogResponse (0x00000000, 0x00000001, 0x00000000, 0xffffffff, 0x001587d4) from scatrucking.amx
[12:30:56] [part] HI.Stiker has left the server (0:2)

----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3z, ©2005-2014 SA-MP Team

[12:31:41] 
[12:31:41] Server Plugins
[12:31:41] --------------
[12:31:41]  Loading plugin: crashdetect
[12:31:41]   CrashDetect v4.14 is OK.
[12:31:41]   Loaded.
[12:31:41]  Loading plugin: nativechecker
[12:31:41]   Loaded.
[12:31:41]  Loading plugin: streamer
[12:31:41]   Loaded.
[12:31:41]  Loading plugin: sscanf
[12:31:41] 

[12:31:41]  ===============================

[12:31:41]       sscanf plugin loaded.     

[12:31:41]          Version:  2.8.1        

[12:31:41]    © 2012 Alex "******" Cole  

[12:31:41]  ===============================

[12:31:41]   Loaded.
[12:31:41]  Loading plugin: FileManager
[12:31:41] ******************
[12:31:41] ** FILE MANAGER **
[12:31:41] **    Loaded    **
[12:31:41] ** Version 1.4 **
[12:31:41] ******************
[12:31:41]   Loaded.
[12:31:41]  Loaded 5 plugins.

[12:31:41] 
[12:31:41] Filterscripts
[12:31:41] ---------------
[12:31:41]   Loading filterscript 'bugrep.amx'...
[12:31:41]   Loading filterscript 'knpc.amx'...
[12:31:41]    Error: Function not registered: 'file_create'
[12:31:41]    Error: Function not registered: 'file_exists'
[12:31:41]    Error: Function not registered: 'file_delete'
[12:31:41]    Error: Function not registered: 'file_move'
[12:31:41] 
----------------------------------
[12:31:41] InGame NPC editor by Kurence loaded!
[12:31:41] ----------------------------------

[12:31:41]   Loaded 2 filterscripts.

[12:31:41]    Error: Function not registered: 'SSCANF_Init'
[12:31:41]    Error: Function not registered: 'SSCANF_Join'
[12:31:41]    Error: Function not registered: 'SSCANF_Leave'
[12:31:41]    Error: Function not registered: 'CreateDynamicMapIcon'
[12:31:41]    Error: Function not registered: 'CreateDynamicObject'
[12:31:41]    Error: Function not registered: 'TogglePlayerAllDynamicCPs'
[12:31:41]    Error: Function not registered: 'sscanf'
[12:31:41]    Error: Function not registered: 'CreateDynamicCP'
[12:31:41]    Error: Function not registered: 'CreateDynamicPickup'
[12:31:41]    Error: Function not registered: 'TogglePlayerDynamicCP'
[12:31:41] ||- Banks loaded: 0 -||
[12:31:41] 
----------------------------------
[12:31:41] Trucking Script Loaded
[12:31:41] ----------------------------------

[12:31:41] Number of vehicle models: 33
[12:32:00] Incoming connection: 192.168.42.40:53517
[12:32:00] [join] PHI.Stiker has joined the server (0:192.168.42.40)
[12:32:25] RCON (In-Game): Player #0 (PHI.Stiker) has logged in.
Console input: gmx
[12:33:32] [debug] Run time error 4: "Array index out of bounds"
[12:33:32] [debug]  Accessing element at negative index -1
[12:33:32] [debug] AMX backtrace:
[debug] #0 0009790c in public SSCANF_OnPlayerDisconnect (0x00000000, 0x00000001) from scatrucking.amx
[debug] #1 000003ac in public OnPlayerDisconnect (0x00000000, 0x00000001) from scatrucking.amx
[12:33:44]    Error: Function not registered: 'SSCANF_Init'
[12:33:44]    Error: Function not registered: 'SSCANF_Join'
[12:33:44]    Error: Function not registered: 'SSCANF_Leave'
[12:33:44]    Error: Function not registered: 'CreateDynamicMapIcon'
[12:33:44]    Error: Function not registered: 'CreateDynamicObject'
[12:33:44]    Error: Function not registered: 'TogglePlayerAllDynamicCPs'
[12:33:44]    Error: Function not registered: 'sscanf'
[12:33:44]    Error: Function not registered: 'CreateDynamicCP'
[12:33:44]    Error: Function not registered: 'CreateDynamicPickup'
[12:33:44]    Error: Function not registered: 'TogglePlayerDynamicCP'
[12:33:44] ||- Banks loaded: 0 -||
[12:33:44] 
----------------------------------
[12:33:44] Trucking Script Loaded
[12:33:44] ----------------------------------

[12:33:44] Number of vehicle models: 33
[12:34:02] [debug] Run time error 4: "Array index out of bounds"
[12:34:02] [debug]  Accessing element at negative index -1
[12:34:02] [debug] AMX backtrace:
[debug] #0 0009790c in public SSCANF_OnPlayerDisconnect (0x00000000, 0x00000001) from scatrucking.amx
[debug] #1 000003ac in public OnPlayerDisconnect (0x00000000, 0x00000001) from scatrucking.amx
[12:34:02] [part] PHI.Stiker has left the server (0:1)

----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3z, ©2005-2014 SA-MP Team

[12:36:26] 
[12:36:26] Server Plugins
[12:36:26] --------------
[12:36:26]  Loading plugin: crashdetect
[12:36:26]   CrashDetect v4.14 is OK.
[12:36:26]   Loaded.
[12:36:26]  Loading plugin: nativechecker
[12:36:26]   Loaded.
[12:36:26]  Loading plugin: streamer
[12:36:26]   Loaded.
[12:36:26]  Loading plugin: sscanf
[12:36:26] 

[12:36:26]  ===============================

[12:36:26]       sscanf plugin loaded.     

[12:36:26]          Version:  2.8.1        

[12:36:26]    © 2012 Alex "******" Cole  

[12:36:26]  ===============================

[12:36:26]   Loaded.
[12:36:26]  Loading plugin: FileManager
[12:36:26] ******************
[12:36:26] ** FILE MANAGER **
[12:36:26] **    Loaded    **
[12:36:26] ** Version 1.4 **
[12:36:26] ******************
[12:36:26]   Loaded.
[12:36:26]  Loaded 5 plugins.

[12:36:26] 
[12:36:26] Filterscripts
[12:36:26] ---------------
[12:36:26]   Loading filterscript 'bugrep.amx'...
[12:36:26]   Loading filterscript 'knpc.amx'...
[12:36:26]    Error: Function not registered: 'file_create'
[12:36:26]    Error: Function not registered: 'file_exists'
[12:36:26]    Error: Function not registered: 'file_delete'
[12:36:26]    Error: Function not registered: 'file_move'
[12:36:26] 
----------------------------------
[12:36:26] InGame NPC editor by Kurence loaded!
[12:36:26] ----------------------------------

[12:36:26]   Loaded 2 filterscripts.

[12:36:26]    Error: Function not registered: 'SSCANF_Init'
[12:36:26]    Error: Function not registered: 'SSCANF_Join'
[12:36:26]    Error: Function not registered: 'SSCANF_Leave'
[12:36:26]    Error: Function not registered: 'CreateDynamicMapIcon'
[12:36:26]    Error: Function not registered: 'CreateDynamicObject'
[12:36:26]    Error: Function not registered: 'TogglePlayerAllDynamicCPs'
[12:36:26]    Error: Function not registered: 'sscanf'
[12:36:26]    Error: Function not registered: 'CreateDynamicCP'
[12:36:26]    Error: Function not registered: 'CreateDynamicPickup'
[12:36:26]    Error: Function not registered: 'TogglePlayerDynamicCP'
[12:36:26] ||- Banks loaded: 0 -||
[12:36:26] 
----------------------------------
[12:36:26] Trucking Script Loaded
[12:36:26] ----------------------------------

[12:36:26] Number of vehicle models: 33
[12:36:56] Incoming connection: 192.168.42.40:51767
[12:36:56] [join] PHI.Stiker has joined the server (0:192.168.42.40)
[12:39:26] [debug] Run time error 4: "Array index out of bounds"
[12:39:26] [debug]  Accessing element at negative index -1
[12:39:26] [debug] AMX backtrace:
[debug] #0 0009790c in public SSCANF_OnPlayerDisconnect (0x00000000, 0x00000001) from scatrucking.amx
[debug] #1 000003ac in public OnPlayerDisconnect (0x00000000, 0x00000001) from scatrucking.amx
[12:39:26] [part] PHI.Stiker has left the server (0:1)
i think the error was in OnPlayerDisconnect but i don't get any warnings/Errors and why i see those Error Something in RCON menu
Код:
[12:36:26]    Error: Function not registered: 'file_create'
[12:36:26]    Error: Function not registered: 'file_exists'
[12:36:26]    Error: Function not registered: 'file_delete'
[12:36:26]    Error: Function not registered: 'file_move'
Код:
[12:36:26]    Error: Function not registered: 'SSCANF_Init'
[12:36:26]    Error: Function not registered: 'SSCANF_Join'
[12:36:26]    Error: Function not registered: 'SSCANF_Leave'
[12:36:26]    Error: Function not registered: 'CreateDynamicMapIcon'
[12:36:26]    Error: Function not registered: 'CreateDynamicObject'
[12:36:26]    Error: Function not registered: 'TogglePlayerAllDynamicCPs'
[12:36:26]    Error: Function not registered: 'sscanf'
[12:36:26]    Error: Function not registered: 'CreateDynamicCP'
[12:36:26]    Error: Function not registered: 'CreateDynamicPickup'
[12:36:26]    Error: Function not registered: 'TogglePlayerDynamicCP'
here is the OnPlayerDisconnect
pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
    firstspawn[playerid] = 0;
    PInfo[playerid][Warn] = 0;
    new str[128];
    switch(reason)
    {
        case 0:
        {
            format(str,sizeof(str),"» %s(%d) has been Disconnected "lyellow"[Timeout]",GetPName(playerid),playerid);
            SendClientMessageToAll(green2,str);
        }
        case 1:
        {
            format(str,sizeof(str),"» %s(%d) has been Disconnected "lyellow"[Leaving]",GetPName(playerid),playerid);
            SendClientMessageToAll(green2,str);
        }
        case 2:
        {
            format(str,sizeof(str),"» %s(%d) has been Disconnected "lyellow"[Banned]",GetPName(playerid),playerid);
            SendClientMessageToAll(green2,str);
        }
        case 3:
        {
            format(str,sizeof(str),"» %s(%d) has been Disconnected "lyellow"[Kicked]",GetPName(playerid),playerid);
            SendClientMessageToAll(green2,str);
        }
        case 4:
        {
            format(str,sizeof(str),"» %s(%d) has been Disconnected "lyellow"[Crashed]",GetPName(playerid),playerid);
            SendClientMessageToAll(green2,str);
        }
    }
    if(IsBeingSpeced[playerid] == 1)
    {
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            if(IsPlayerConnected(i))
            {
                if(spectatorid[i] == playerid)
                {
                    SpectateOff(playerid);
                }
            }
        }
    }
    TextDrawDestroy(fueltd[playerid]);
    TextDrawDestroy(info[playerid]);
    TextDrawDestroy(speedo[playerid]);
    TextDrawDestroy(tripmetertd[playerid]);
    TextDrawHideForPlayer(playerid,timetd);
    SaveStats(playerid);
    PInfo[playerid][Failedlogins] = 0;
    PInfo[playerid][Logged] = 0;
    PInfo[playerid][hasfuelcan] = 0;
    PInfo[playerid][rescue] = 0;
    PInfo[playerid][beenrescued] = 0;
    PInfo[playerid][Jailed] = 0;
    PInfo[playerid][onduty] = 0;
    PInfo[playerid][fare2] = 0;
    PInfo[playerid][calledtaxi] = 0;
    wallet[playerid] = 0;
    KillTimer(CanUseRescue[playerid]);
    KillTimer(Checkveh[playerid]);
    KillTimer(Ticket[playerid]);
    KillTimer(Jailtimer[playerid]);
    KillTimer(Fare[playerid]);
    KillTimer(ClearRobbed[0]);
    KillTimer(ClearRobbed[1]);
    KillTimer(Raped[playerid][0]);
    KillTimer(Raped[playerid][4]);
    KillTimer(Raped[playerid][5]);
    Raped[playerid][1] = 0;
    Raped[playerid][2] = 0;
    Showndialog[playerid] = 0;
    hastickettopay[playerid] = 0;
    if (minfo[playerid][CheckpointID] == 1)
    {
        KillTimer(LTimer[playerid]);
    }
    if (minfo[playerid][CheckpointID] == 2)
    {
        KillTimer(ULTimer[playerid]);
        if (minfo[playerid][AllowTrailerCheck] == true)
        {
            KillTimer(TrailerCheckTimer[playerid]);
        }
    }
    TogglePlayerAllDynamicCPs(playerid, 1);
    IsPlayerInMission[playerid] = 0;
    PInfo[PInfo[playerid][called]][answerd] = -1;
    PInfo[PInfo[playerid][called]][called] = -1;
    PInfo[playerid][called] = -1;
    PInfo[playerid][answerd] = -1;
    SetPlayerGPS(playerid,0);
    SetPlayerVirtualWorld(playerid,0);
    inplane[playerid] = 0;
    ClearCheat[playerid] = 0;
    InBankID[playerid] = 0;
    RecentlyRobbed[playerid] = 0;
    RobbedRecently[playerid] = 0;
    HasClamidia[playerid] = 0;
    Delete3DTextLabel(Shamal[playerid]);
    Delete3DTextLabel(Ranklbl[playerid]);
    return 1;
}
Код:
[12:39:26] [debug] Run time error 4: "Array index out of bounds"
[12:39:26] [debug]  Accessing element at negative index -1
[12:39:26] [debug] AMX backtrace:
[debug] #0 0009790c in public SSCANF_OnPlayerDisconnect (0x00000000, 0x00000001) from scatrucking.amx
[debug] #1 000003ac in public OnPlayerDisconnect (0x00000000, 0x00000001) from scatrucking.amx
Reply
#2

Update sscanf , i had that problem too.
Reply
#3

already did it for many times
Reply
#4

Try installing this: http://www.softpedia.com/get/System/...nstaller.shtml.
Reply
#5

What is that?
Reply
#6

Try putting nativechecker plugin at the end of plugins line in server.cfg
Example: plugins mysql sscanf streamer Whirlpool nativechecker
Edit: it won't resolve all the errors, but will reduce them.
Reply
#7

Update sscanf plugin + include to latest version and then re compile the GM and the FS script you are using with latest sscanf include

And about dat 2nd error[Array index out of bounds] it is cazed due to a -1 placed in a array
Example of error-
pawn Код:
array[-1]
in ur OnPlayerdiscconect there are many arrays and we cannot figure out which one is causing the error
To figure this out place a "print( line number );" after each line and then in log see after which print of line the error occurs
Reply
#8

Quote:
Originally Posted by Wizzy951
Посмотреть сообщение
Try putting nativechecker plugin at the end of plugins line in server.cfg
Example: plugins mysql sscanf streamer Whirlpool nativechecker
Edit: it won't resolve all the errors, but will reduce them.
actually i use both crashdetect and nativechecker, try to check out my first last post.
Reply
#9

Quote:
Originally Posted by BroZeus
Посмотреть сообщение
Update sscanf plugin + include to latest version and then re compile the GM and the FS script you are using with latest sscanf include

And about dat 2nd error[Array index out of bounds] it is cazed due to a -1 placed in a array
Example of error-
pawn Код:
array[-1]
in ur OnPlayerdiscconect there are many arrays and we cannot figure out which one is causing the error
To figure this out place a "print( line number );" after each line and then in log see after which print of line the error occurs
i will try this, but my include and plugins are latest version i just download them yesterday, well i guess let me re download again.

EDIT: anyway how can i disable lagcomp?
Reply
#10

Quote:
Originally Posted by BroZeus
Посмотреть сообщение
in ur OnPlayerdiscconect there are many arrays and we cannot figure out which one is causing the error
To figure this out place a "print( line number );" after each line and then in log see after which print of line the error occurs
Can you explain more! this must be important

EDIT: i just update all include and plugins but nothing happens still got errors
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)