16.08.2010, 05:36
(
Последний раз редактировалось Zeex; 16.08.2010 в 14:45.
)
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
The script itself:
Anyway, I've uploaded the project on here: http://solidfiles.com/d/14d5/ (you need VS2008+ and Pawn toolkit in order to build it).
Код:
[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.
pawn Код:
#include <a_samp>
#pragma library Test
native hello();
main()
{
printf("%d", hello());
}