Server crashed while executing dsrpnew.amx
#5

Quote:
Originally Posted by Kaliber
Посмотреть сообщение
Nah i am sry...

It is a little bit more complex the problem

Okay here the new fix:

PHP код:
/* Sa-Mp Include Fix
 *
 * © by Kaliber, 2015
 *
 */
/******************************************************************************/
#if !defined _samp_included
    #include <a_samp>
#endif
/******************************************************************************/
#if defined _samp_fix
    #endinput
#endif
#define _samp_fix
/******************************************************************************/
native __fopen(name[], filemode:mode io_readwrite) = fopen;
native __fread(File:handlestring[], size sizeof stringboolpack false) = fread;
native __fclose(File:handle) = fclose;
/******************************************************************************/
stock File:_fopen(name[], filemode:mode io_readwrite) {
    const 
File:error File:-1;
    return (!
fexist(name)) ? error File:__fopen(name,mode);
}
/******************************************************************************/
#if defined _ALS_fopen
    #undef fopen
#else
    #define _ALS_fopen
#endif
#define fopen _fopen
/******************************************************************************/
stock _fread(File:handlestring[], size sizeof stringboolpack false)
    return (
handle == File:-1) ? __fread(handle,string,size,pack);
/******************************************************************************/
#if defined _ALS_fread
    #undef fread
#else
    #define _ALS_fread
#endif
#define fread _fread
/******************************************************************************/
stock _fclose(File:handle)
    return (
handle == File:-1) ? __fclose(handle);
/******************************************************************************/
#if defined _ALS_fclose
    #undef fclose
#else
    #define _ALS_fclose
#endif
#define fclose _fclose
/******************************************************************************/ 
Код:
[10:42:11] [connection] 127.0.0.1:57682 requests connection cookie.
[10:42:12] [connection] incoming connection: 127.0.0.1:57682 id: 0
[10:42:12] [join] Jai_Brooks has joined the server (0:127.0.0.1)
[10:42:12] [debug] Server crashed while executing dsrpnew.amx
[10:42:12] [debug] AMX backtrace:
[10:42:12] [debug] #0 native fread () from samp-server.exe
[10:42:12] [debug] #1 00028cc8 in ?? (76062664) from dsrpnew.amx
[10:42:12] [debug] #2 0003f07c in public RL_OnPlayerConnect (0) from dsrpnew.amx
[10:42:12] [debug] #3 native CallLocalFunction () from samp-server.exe
[10:42:12] [debug] #4 00013528 in public Audio_OnPlayerConnect (0) from dsrpnew.amx
[10:42:12] [debug] #5 native CallLocalFunction () from samp-server.exe
[10:42:12] [debug] #6 0001157c in public SSCANF_OnPlayerConnect (0) from dsrpnew.amx
[10:42:12] [debug] #7 0000b688 in public Itter_OnPlayerConnect (0) from dsrpnew.amx
[10:42:12] [debug] #8 native CallLocalFunction () from samp-server.exe
[10:42:12] [debug] #9 00000da4 in public OnPlayerConnect (0) from dsrpnew.amx
[10:42:12] [debug] Native backtrace:
[10:42:12] [debug] #0 776c5e93 in ?? () from C:\Windows\SYSTEM32\ntdll.dll
[10:42:12] [debug] #1 00498bb8 in ?? () from samp-server.exe
[10:42:12] [debug] #2 004991e0 in ?? () from samp-server.exe
[10:42:12] [debug] #3 00404f14 in ?? () from samp-server.exe
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 5 Guest(s)