[HELP] Server's crash.
#1

Hello.

I was trying to make an Anti-Spawn Kill. And I tried to make a Dynamic Anti-Spawn Kill.
But, the problem it's when I put at the filterscripts line in server.cfg my server's console shuts down, if I don't put filterscript, then server works fine.

* NOTE: Tested with Grand Larceny. There cannot be bugs.

crashinfo.txt

pawn Код:
--------------------------
 
SA-MP Server: 0.3z
 
 
 
Exception At Address: 0x00403334 Module: (samp-server.exe)
 
 
 
Registers:
 
EAX: 0x000026CB EBX: 0x00000000 ECX: 0x000011D1 EDX: 0x0449E8BC
 
ESI: 0x02AA7190 EDI: 0x0000002D EBP: 0x02AA7190 ESP: 0x0018FDB8
 
EFLAGS: 0x00010297
 
 
 
Stack:
 
+0000: 0x00797550   0x0018FE14   0x00403684   0x0449E8BC
 
+0010: 0x02AA7190   0x00000000   0x00000000   0x7FFFFFFF
 
+0020: 0x00000064   0x02692836   0x75AB10FF   0x00000000
 
+0030: 0x0047E0F1   0x00797550   0x0018FE14   0x0018FE18
 
+0040: 0x02AA7190   0x0449E8BC   0x00000000   0x75AB1136
 
+0050: 0x003B8F40   0x3BA6BB67   0x006EE570   0x0103CCF0
 
+0060: 0x0449E8BC   0x00000046   0x00000000   0x0048B527
 
+0070: 0x75AB1691   0x00000000   0x3BA6BB67   0x004877CB
 
+0080: 0x00000000   0x00001DB1   0x0018FF88   0x7EFDE000
 
+0090: 0x0000E000   0x00010101   0x00000032   0x00001E61
 
+00A0: 0x000000E0   0x00000960   0x003B8F40   0x656D6167
 
+00B0: 0x65646F6D   0x00003531   0x004BC014   0x004BC010
 
+00C0: 0x7EFDE000   0x004A6140   0x0018FE70   0x0018FF78
 
+00D0: 0x0018FF78   0x00497FE8   0x004B2E98   0xFFFFFFFF
 
+00E0: 0x00496281   0x00496291   0x004A6140   0x0018FF78
 
+00F0: 0x004A5DB1   0xFFFFFFFF   0x00497A86   0x00000001
 
+0100: 0x003B14C0   0x003B1510   0x00000094   0x00000006
 
+0110: 0x00000001   0x00001DB1   0x00000002   0x76726553
 
+0120: 0x20656369   0x6B636150   0x00003120   0x00000000
 
+0130: 0x00000000   0x00000000   0x00000000   0x00000000
 
 
 
--------------------------
 
 
 
Loaded Modules:
 
samp-server.exe A: 0x00400000 - 0x004F5000      (C:\Users\USER\Desktop\Programe\Textdraw-uri\samp-server.exe)
 
ntdll.dll       A: 0x77C20000 - 0x77DA0000      (C:\Windows\SysWOW64\ntdll.dll)
 
kernel32.dll    A: 0x75AA0000 - 0x75BB0000      (C:\Windows\syswow64\kernel32.dll)
 
KERNELBASE.dll  A: 0x773E0000 - 0x77427000      (C:\Windows\syswow64\KERNELBASE.dll)
 
SHELL32.dll     A: 0x76350000 - 0x76F9A000      (C:\Windows\syswow64\SHELL32.dll)
 
msvcrt.dll      A: 0x77040000 - 0x770EC000      (C:\Windows\syswow64\msvcrt.dll)
 
SHLWAPI.dll     A: 0x77120000 - 0x77177000      (C:\Windows\syswow64\SHLWAPI.dll)
 
GDI32.dll       A: 0x75720000 - 0x757B0000      (C:\Windows\syswow64\GDI32.dll)
 
USER32.dll      A: 0x75620000 - 0x75720000      (C:\Windows\syswow64\USER32.dll)
 
ADVAPI32.dll    A: 0x75BC0000 - 0x75C60000      (C:\Windows\syswow64\ADVAPI32.dll)
 
sechost.dll     A: 0x76250000 - 0x76269000      (C:\Windows\SysWOW64\sechost.dll)
 
RPCRT4.dll      A: 0x77190000 - 0x77280000      (C:\Windows\syswow64\RPCRT4.dll)
 
SspiCli.dll     A: 0x755C0000 - 0x75620000      (C:\Windows\syswow64\SspiCli.dll)
 
CRYPTBASE.dll   A: 0x755B0000 - 0x755BC000      (C:\Windows\syswow64\CRYPTBASE.dll)
 
LPK.dll A: 0x76070000 - 0x7607A000      (C:\Windows\syswow64\LPK.dll)
 
USP10.dll       A: 0x76FA0000 - 0x7703D000      (C:\Windows\syswow64\USP10.dll)
 
WSOCK32.dll     A: 0x73CD0000 - 0x73CD7000      (C:\Windows\system32\WSOCK32.dll)
 
WS2_32.dll      A: 0x760B0000 - 0x760E5000      (C:\Windows\syswow64\WS2_32.dll)
 
NSI.dll A: 0x76050000 - 0x76056000      (C:\Windows\syswow64\NSI.dll)
 
WINMM.dll       A: 0x714D0000 - 0x71502000      (C:\Windows\system32\WINMM.dll)
 
IMM32.DLL       A: 0x77430000 - 0x77490000      (C:\Windows\system32\IMM32.DLL)
 
MSCTF.dll       A: 0x75E60000 - 0x75F2C000      (C:\Windows\syswow64\MSCTF.dll)
 
nvinit.dll      A: 0x72F20000 - 0x72F4C000      (C:\Windows\SysWOW64\nvinit.dll)
 
detoured.dll    A: 0x0F000000 - 0x0F006000      (C:\Program Files (x86)\NVIDIA Corporation\CoProcManager\detoured.dll)
 
nvd3d9wrap.dll  A: 0x6DB50000 - 0x6DB7C000      (C:\Program Files (x86)\NVIDIA Corporation\CoProcManager\nvd3d9wrap.dll)
 
SETUPAPI.dll    A: 0x77680000 - 0x7781D000      (C:\Windows\syswow64\SETUPAPI.dll)
 
CFGMGR32.dll    A: 0x757C0000 - 0x757E7000      (C:\Windows\syswow64\CFGMGR32.dll)
 
OLEAUT32.dll    A: 0x76270000 - 0x762FF000      (C:\Windows\syswow64\OLEAUT32.dll)
 
DEVOBJ.dll      A: 0x770F0000 - 0x77102000      (C:\Windows\syswow64\DEVOBJ.dll)
 
nvdxgiwrap.dll  A: 0x6DB20000 - 0x6DB40000      (C:\Program Files (x86)\NVIDIA Corporation\CoProcManager\nvdxgiwrap.dll)
 
mswsock.dll     A: 0x71590000 - 0x715CC000      (C:\Windows\system32\mswsock.dll)
 
wshtcpip.dll    A: 0x743F0000 - 0x743F5000      (C:\Windows\System32\wshtcpip.dll)
 
NLAapi.dll      A: 0x74410000 - 0x74420000      (C:\Windows\system32\NLAapi.dll)
 
napinsp.dll     A: 0x74400000 - 0x74410000      (C:\Windows\system32\napinsp.dll)
 
pnrpnsp.dll     A: 0x743C0000 - 0x743D2000      (C:\Windows\system32\pnrpnsp.dll)
 
DNSAPI.dll      A: 0x72F70000 - 0x72FB4000      (C:\Windows\system32\DNSAPI.dll)
 
winrnr.dll      A: 0x743B0000 - 0x743B8000      (C:\Windows\System32\winrnr.dll)
 
IPHLPAPI.DLL    A: 0x73C80000 - 0x73C9C000      (C:\Windows\system32\IPHLPAPI.DLL)
 
WINNSI.DLL      A: 0x73C70000 - 0x73C77000      (C:\Windows\system32\WINNSI.DLL)
 
rasadhlp.dll    A: 0x74390000 - 0x74396000      (C:\Windows\system32\rasadhlp.dll)
serverlog.txt

pawn Код:
----------
Loaded log file: "server_log.txt".
----------
 
SA-MP Dedicated Server
----------------------
v0.3z, (C)2005-2014 SA-MP Team
 
[19:41:39]
[19:41:39] Server Plugins
[19:41:39] --------------
[19:41:39]  Loaded 0 plugins.
 
[19:41:39]
[19:41:39] Filterscripts
[19:41:39] ---------------
[19:41:39]   Loading filterscript 'AS.amx'...
[19:41:39]  
[19:41:39]  
[19:41:39]  
[19:41:39]  =======================================
[19:41:39]  |                                     |
[19:41:39]  |        YSI version 3.09.0684        |
[19:41:39]  |        By Alex "******" Cole        |
[19:41:39]  |                                     |
[19:41:39]  =======================================
[19:41:39]  
[19:41:39]  
[19:41:39]  
[19:41:39]   Loaded 1 filterscripts.
 
[19:41:39]
----------------------------------
[19:41:39]  Blank Gamemode by your name here
[19:41:39] ----------------------------------
SourceCode.pwn

pawn Код:
#include <a_samp>
#include <zcmd>
#include <sscanf>
#include <YSI\y_ini>
 
//------------------------------------------------------------------------------
 
#define MAX_ZONES 1000
#define ZPATH "%s.ini"
 
//------------------------------------------------------------------------------
 
enum zInfo
{
        zName[32],
        Float:zX,
        Float:zY,
        Float:zZ
}
 
//------------------------------------------------------------------------------
 
new ZoneInfo[MAX_ZONES][zInfo];
new zoneid;
 
//------------------------------------------------------------------------------
 
public OnFilterScriptInit()
{
        for(new i = 0; i < MAX_ZONES; i++)
        {
                INI_ParseFile(SpawnPath(), "LoadZona_%s", .bExtra = true, .extra = i);
        }
        return 1;
}
 
//------------------------------------------------------------------------------
 
forward LoadZona(name[], value[]);
public LoadZona(name[], value[])
{
        INI_Float("Pozitie X", ZoneInfo[zoneid][zX]);
        INI_Float("Pozitie Y", ZoneInfo[zoneid][zY]);
        INI_Float("Pozitie Z", ZoneInfo[zoneid][zZ]);
        return 1;
}
 
//------------------------------------------------------------------------------
 
CMD:crearespawn(playerid, params[])
{
        new Float:X, Float:Y, Float:Z, string[100];
        GetPlayerPos(playerid, X, Y, Z);
        if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "{FF0000}EROARE: {FFFFFF}Nu esti autorizat să folosesti această comandă.");
        if(isnull(params)) return SendClientMessage(playerid, -1, "{FF0000}Folosire: {FFFFFF}/CreareSpawn [Nume Zonă]");
        ZoneInfo[zoneid][zName] = strlen(params);
        ZoneInfo[zoneid][zX] = X;
        ZoneInfo[zoneid][zY] = Y;
        ZoneInfo[zoneid][zZ] = Z;
        format(string, sizeof(string), "{FF0000}[ZONA]: {FFFFFF}Zonă Anti-Spawn Kill: {FF0000}%d {FFFFFF}a fost creată.", zoneid);
        SendClientMessage(playerid, -1, string);
        new INI:File = INI_Open(SpawnPath());
        INI_SetTag(File, "Zone Anti-SpawnKill");
        INI_WriteString(File, "Nume zonă", params);
        INI_WriteFloat(File, "Pozitie X", X);
        INI_WriteFloat(File, "Pozitie Y", Y);
        INI_WriteFloat(File, "Pozitie Z", Z);
        INI_Close(File);
        zoneid++;
        return 1;
}
 
//------------------------------------------------------------------------------
 
stock SpawnPath()
{
        new string[32];
        format(string, sizeof(string), ZPATH, ZoneInfo[zoneid][zName]);
        return string;
}
 
//------------------------------------------------------------------------------
 
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart)
{
        for(new i = 0; i < MAX_ZONES; i++)
        {
                if(IsPlayerInRangeOfPoint(playerid, 50.0, ZoneInfo[i][zX], ZoneInfo[i][zY], ZoneInfo[i][zZ]))
                {
                        new string[128], Float:Viata, name[MAX_PLAYER_NAME];
                        GetPlayerHealth(playerid, Viata);
                        GetPlayerName(playerid, name, sizeof(name));
                        format(string, sizeof(string), "{FF0000}[SPAWN]: {FFFFFF}Jucătorul {FF0000}%s {FFFFFF}a оncercat să te omoare.", name);
                        SendClientMessage(issuerid, -1, string);
                        GameTextForPlayer(playerid, "~g~OPRESTE-TE", 5000, 5);
                        SetPlayerHealth(issuerid, Viata + amount);
                        ResetPlayerWeapons(playerid);
                }
        }
        return 1;
}
 
//------------------------------------------------------------------------------
Reply
#2

bump...
Reply
#3

Make sure that you've created the path folder inside the scriptfiles.
Reply
#4

There isn't any path lol.
Just defined as %s.ini and I created that path on scriptfiles, I didn't put them in a folder path.

pawn Код:
#define ZPATH "%s.ini"
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)