sampctl errors at server start
#1

So, I am new to sampctl, at server start I get

Код:
WARN: crash loop backoff for 2s reason: exit status 3221225477
ERROR: received runtime error: failed to start server: exit status 3221225477
after I added these lines

PHP код:
    MapAndreas_Init(MAP_ANDREAS_MODE_FULL);
    
FCNPC_InitMapAndreas(MAP_ANDREAS_MODE_FULL);
    
FCNPC_SetUpdateRate(80); 
Removing them makes server start.
Is there any list of error codes so I can read what that error code means?
Reply
#2

Код:
MapAndreas_Init(MAP_ANDREAS_MODE_FULL);
FCNPC_InitMapAndreas(MapAndreas_GetAddress());
FCNPC_SetUpdateRate(80);
Reply
#3

I've tried that, but the include I'm using doesn't have that native, neither this
https://github.com/philip1337/samp-plugin-mapandreas
has it
PHP код:
// MapAndreas 1.2
// 11.6.2014
// Originally created by Kalcor, updated by Mauzen
#define MAP_ANDREAS_MODE_NONE            0
#define MAP_ANDREAS_MODE_MINIMAL        1
#define MAP_ANDREAS_MODE_MEDIUM            2    // currently unused
#define MAP_ANDREAS_MODE_FULL            3
#define MAP_ANDREAS_MODE_NOBUFFER        4
#define MAP_ANDREAS_ERROR_SUCCESS        0
#define MAP_ANDREAS_ERROR_FAILURE        1
#define MAP_ANDREAS_ERROR_MEMORY        2
#define MAP_ANDREAS_ERROR_DATA_FILES    3
#define MAP_ANDREAS_ERROR_INVALID_AREA    4
native MapAndreas_Init(modename[]=""len=sizeof(name));
native MapAndreas_FindZ_For2DCoord(Float:XFloat:Y, &Float:Z);
native MapAndreas_FindAverageZ(Float:XFloat:Y, &Float:Z);
native MapAndreas_Unload();
native MapAndreas_SetZ_For2DCoord(Float:XFloat:YFloat:Z);
native MapAndreas_SaveCurrentHMap(name[]); 
Is this include the wrong one?
Should I switch directly to ColAndreas? Do FCNPC natives like FCNPC_GoTo use both MapAndreas or ColAndreas?
Reply
#4

Quote:
Originally Posted by v1k1nG
Посмотреть сообщение
Is this include the wrong one?
I can't find the v1.2.1 source code, but here are the .dll and .inc files: download link.

Quote:
Originally Posted by v1k1nG
Посмотреть сообщение
Should I switch directly to ColAndreas? Do FCNPC natives like FCNPC_GoTo use both MapAndreas or ColAndreas?
ColAndreas is an FCNPC 2.0 feature and is still under development.

EDIT:
Just found the source code: download link.
Reply
#5

Thank you, I really appreciate it man!!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)