kristoisberg / samp-gps-plugin Goto Github PK
View Code? Open in Web Editor NEWModern and feature-rich pathfinding plugin for open.mp and SA-MP.
Modern and feature-rich pathfinding plugin for open.mp and SA-MP.
Hello, i've just added this GPS plugin and script compiles with no errors, but when I start server this is what I get:
[19:22:55] *** Streamer Plugin: The plugin version (0x295) is older than the include file version (0x296) for this script. The plugin might need to be updated to the latest version. [19:22:55] [debug] Run time error 19: "File or function is not found" [19:22:55] [debug] GetClosestMapNodeToPoint [19:22:55] [debug] FindPath [19:22:55] [debug] GetPathNode [19:22:55] [debug] GetMapNodePos [19:22:55] [debug] GetMapNodeAngleFromPoint [19:22:55] [debug] Run time error 19: "File or function is not found" [19:22:55] [debug] GetClosestMapNodeToPoint [19:22:55] [debug] FindPath [19:22:55] [debug] GetPathNode [19:22:55] [debug] GetMapNodePos [19:22:55] [debug] GetMapNodeAngleFromPoint
I don't understand why. Streamer plugin and include version are both 2.96. I've also tried to download plugin/include version of 2.95 but same problem.
I Downloaded The Gps Plugin It has 3items Idk About gps.dat File, Where Should I Put gps.dat file in my gamemode directory
04:33:48] [debug] Run time error 4: "Array index out of bounds"
[04:33:48] [debug] Attempted to read/write array element at index 29 in array of size 29
[04:33:48] [debug] AMX backtrace:
[04:33:48] [debug] #0 00467a0c in public AC_OnPlayerSpawn (3) in nexalrp.amx
[04:33:48] [debug] #1 00089908 in public WC_OnPlayerSpawn (3) in nexalrp.amx
[04:33:48] [debug] #2 00071740 in public ac_OnPlayerSpawn (3) in nexalrp.amx
[04:33:48] [debug] #3 00038f0c in public OnPlayerSpawn (3) in nexalrp.amx
[14:41:36] [debug] Run time error 4: "Array index out of bounds"
[14:41:36] [debug] Attempted to read/write array element at index 29 in array of size 29
[14:41:36] [debug] AMX backtrace:
[14:41:36] [debug] #0 004646c0 in public AC_OnPlayerSpawn (0) in nexalrp.amx
[14:41:36] [debug] #1 00089908 in public WC_OnPlayerSpawn (0) in nexalrp.amx
[14:41:36] [debug] #2 00071740 in public ac_OnPlayerSpawn (0) in nexalrp.amx
[14:41:36] [debug] #3 00038f0c in public OnPlayerSpawn (0) in nexalrp.amx
How to fix this errors
Server cfg:
plugins crashdetect streamer sscanf Whirlpool pawncmd mapandreas mysql GPS nativechecker
Errors:
[01:33:19] [debug] Run time error 4: "Array index out of bounds"
[01:33:19] [debug] AMX backtrace:
[01:33:19] [debug] #0 0001ba58 in CodeScanAddJumpTarget (cip=-2392276, stk=0, hea=0, jumpTargets[CodeScanner:164]=@01ab64b0, next=32, sip=-2455984) at C:\Users\pc\Desktop\Gamemode\pawno\include\YSI_Data\y_foreach....\YSI_Coding\y_hooks..\y_cgen....\YSI_Core\y_core....\amx\codescan.inc:262
[01:33:19] [debug] #1 0001c0bc in CodeScanAddSwitchTarget (dctx[DisasmContext:22]=@01ab5c44, stk=0, hea=0, jumpTargets[CodeScanner:164]=@01ab64b0, next=-2455984) at C:\Users\pc\Desktop\Gamemode\pawno\include\YSI_Data\y_foreach....\YSI_Coding\y_hooks..\y_cgen....\YSI_Core\y_core....\amx\codescan.inc:294
[01:33:19] [debug] #2 0001e53c in bool:CodeScanStepInternal (dctx[DisasmContext:22]=@01ab5c44, csState[CodeScanner:164]=@01ab64b0, &parseState=@01ab5c38 0, &parseParam=@01ab5c34 0) at C:\Users\pc\Desktop\Gamemode\pawno\include\YSI_Data\y_foreach....\YSI_Coding\y_hooks..\y_cgen....\YSI_Core\y_core....\amx\codescan.inc:747
[01:33:19] [debug] #3 0001ea88 in bool:CodeScanRun (csState[CodeScanner:164]=@01ab64b0) at C:\Users\pc\Desktop\Gamemode\pawno\include\YSI_Data\y_foreach....\YSI_Coding\y_hooks..\y_cgen....\YSI_Core\y_core....\amx\codescan.inc:817
[01:33:19] [debug] #4 0001ffc0 in AddressofResolve () at C:\Users\pc\Desktop\Gamemode\pawno\include\YSI_Data\y_foreach....\YSI_Coding\y_hooks..\y_cgen....\YSI_Core\y_core....\amx\addressof_jit.inc:130
[01:33:19] [debug] #5 0002058c in public AMX_OnCodeInit () at C:\Users\pc\Desktop\Gamemode\pawno\include\YSI_Data\y_foreach....\YSI_Coding\y_hooks..\y_cgen....\YSI_Core\y_core\y_thirdpartyinclude.inc:379
[01:33:19] [debug] #6 00010ecc in public Debug_OnCodeInit () at C:\Users\pc\Desktop\Gamemode\pawno\include\YSI_Data\y_foreach....\YSI_Core\y_core\y_amx_impl.inc:206
[01:33:19] [debug] #7 00010820 in public ScriptInit_OnCodeInit () at C:\Users\pc\Desktop\Gamemode\pawno\include\YSI_Data\y_foreach....\YSI_Core\y_core\y_debug_impl.inc:659
[01:33:19] [debug] #8 0000fc38 in public FIXES_OnGameModeInit () at C:\Users\pc\Desktop\Gamemode\pawno\include\YSI_Data\y_foreach....\YSI_Core\y_core\y_scriptinit_impl.inc:319
[01:33:19] [debug] #9 00004344 in public OnGameModeInit () at C:\Users\pc\Desktop\Gamemode\pawno\include\fixes.inc:6015
[01:33:19] [debug] Run time error 4: "Array index out of bounds"
[01:33:19] [debug] AMX backtrace:
[01:33:19] [debug] #0 0004a12c in Malloc_TrySetup () at C:\Users\pc\Desktop\Gamemode\pawno\include\YSI_Coding\y_timers..\y_malloc\y_malloc_heapalloc.inc:226
[01:33:19] [debug] #1 00049b24 in main () at C:\Users\pc\Desktop\Gamemode\pawno\include\YSI_Coding\y_timers..\y_malloc\y_malloc_heapalloc.inc:78
[01:33:19] Script[gamemodes/mode.amx]: Run time error 4: "Array index out of bounds"
[01:33:19] Number of vehicle models: 0
All everything up to date.
lets say im on a gps route and I go off path, or take a shortcut, must I recalculate the route instantly? No. That's a CPU shink. Let us add nodes to the path and its not until you go wayyy off path then we should consider recaulcating.
opposite of GetPathNode
[20/04/2019 01:58:24] Loading plugin: GPS.so
[20/04/2019 01:58:24] Failed (/usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by plugins/GPS.so))
Hi, please make static version for
Loading plugin: GPS.so
Failed (/usr/lib/i386-linux-gnu/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by plugins/GPS.so))
I can't run plugin on host
use plugins folder:
[2023-11-05T13:40:25+0700] [Info] Loading plugin: GPS.dll
[2023-11-05T13:40:25+0700] [Info] This file is not a SA-MP plugin.
use components folder:
Loading component GPS.dll
Failed to load component: it is neither an open.mp component nor a SA-MP plugin.
please help me.
I used google translate to compose this text.
I've added gps to the plugin line in the server cfg, and I'm getting this error in the console:
Loading plugin: gps
Plugin does not conform to architecture.
Hello, I'm tryng to compile the plugin because when I run the release version on my samp server I have this error: Failed (/usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by plugins/GPS.so))
//////////////////////////////////////////////////// make ///////////////
root: make
gcc -std=c++17 -c -m32 -fPIC -O3 -w -DLINUX -I./lib/sdk/amx/ ./lib/sdk/amxplugin.cpp
gcc -std=c++17 -c -m32 -fPIC -O3 -w -DLINUX -I./lib/sdk/amx/ ./lib/sdk/amxplugin2.cpp
gcc -std=c++17 -c -m32 -fPIC -O3 -w -DLINUX -I./lib/sdk/amx/ ./src/*.cpp
In file included from /usr/local/include/c++/9.2.0/random:49,
from ./src/natives.cpp:4:
/usr/local/include/c++/9.2.0/bits/random.h:103:26: error: expected unqualified-id before โ__int128โ
103 | { typedef unsigned __int128 type; };
| ^~~~~~~~
make: *** [all] Error 1
//////////////////////////////////////////////////////////////////
samp-gps-plugin-master]# gcc --version: gcc (GCC) 9.2.0
//////////////////////////////////////////////////////////////////
What can be the problem? thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.