Loading standard Pawn libraries...
#3

OK today I found that it DOES modify the native table but I still get "Run time error 19: File or function is not found" which means that it for some reason can't find a little native function from my test DLL

Код:
[12:10:21] Server Plugins
[12:10:21] --------------
[12:10:21]  Loading plugin: amxlib.dll
[12:10:21]   AMXLib plugin by Zeex [Build date: Aug 16 2010]
[12:10:21]   Loaded.
[12:10:21]  Loaded 1 plugins.

[12:10:21] 
[12:10:21] Filter Scripts
[12:10:21] ---------------
[12:10:21]   Loaded 0 filter scripts.

[12:10:21] [amxlib] Error: Couldn't load module: samp
[12:10:21] [amxlib] Error: Couldn't load module: Float
[12:10:21] [amxlib] Loaded module: Test
[12:10:21] 
----------------------------------------------------------------
[12:10:21] hello                           	19051696  <--- address isn't zero
[12:10:21] printf                          	4603616      
[12:10:21] 
----------------------------------------------------------------
[12:10:21] Script[gamemodes/1.amx]: Run time error 19: "File or function is not found"
[12:10:21] Number of vehicle models: 0
[12:42:54] --- Server Shutting Down.
The script itself:
pawn Код:
#include <a_samp>

#pragma library Test

native hello();

main()
{
    printf("%d", hello());
}
Anyway, I've uploaded the project on here: http://solidfiles.com/d/14d5/ (you need VS2008+ and Pawn toolkit in order to build it).
Reply


Messages In This Thread
Loading standard Pawn libraries... - by Zeex - 14.08.2010, 06:24
Re: Loading standard Pawn libraries... - by Zeex - 14.08.2010, 10:07
Re: Loading standard Pawn libraries... - by Zeex - 16.08.2010, 05:36

Forum Jump:


Users browsing this thread: 2 Guest(s)