sampgdk -
RCON1 - 07.06.2014
Can I ask someone to toss the plugin project using the current sampgdk?
It's about a basic plugin
Re: sampgdk -
GWMPT - 07.06.2014
What do you mean with "toss the plugin project using the current sampgdk?"
Re: sampgdk -
RCON1 - 07.06.2014
Compiling the plugin with sampgdk
Sorry for my English
Re: sampgdk -
GWMPT - 07.06.2014
To compile the plugin with the sampgdk, you need to include the sampgdk3.lib into the visual studio project, as well make include the sampgdk header files into the project, in order to use it.
Re: sampgdk -
RCON1 - 07.06.2014
You send it to me (in a pack .zip / rar)?
Re: sampgdk -
GWMPT - 07.06.2014
Check the sampgdk thread, there will be a direct link for the files.
Re: sampgdk -
RCON1 - 07.06.2014
I do not see him anywhere, Aim me at him.
Re: sampgdk -
GWMPT - 07.06.2014
https://sampforum.blast.hk/showthread.php?tid=421090
Not that hard.
Re: sampgdk -
RCON1 - 07.06.2014
The idea was that I could not find a download for windows.
Another question that can be added in sampgdk native?
Re: sampgdk -
LeaveMe - 07.06.2014
If you don't know how to use it, then don't
Re: sampgdk -
GWMPT - 07.06.2014
Quote:
Originally Posted by RCON1
The idea was that I could not find a download for windows.
Another question that can be added in sampgdk native?
|
Just, EXPLAIN what you NEED, instead answering a clue which almost no one understand.
The windows download is there, if you can't find it, it ain't our fault.
As well, what do you mean with "Another question that can be added in sampgdk native"?
EXPLAIN
Re: sampgdk -
RCON1 - 07.06.2014
It does not detect my function
Plugin:
http://pastebin.com/raw.php?i=JKxSkbzY
effect
Re: sampgdk -
ikkentim - 07.06.2014
edit: nevermind, didn't read properly.
Re: sampgdk -
xeeZ - 08.06.2014
Quote:
Originally Posted by RCON1
|
Did you add the SUPPORTS_AMX_NATIVES flag to Supports()?
Re: sampgdk -
RCON1 - 08.06.2014
Yes, I do and I have same problem again. I really don't know how to fix this
Re: sampgdk -
xeeZ - 08.06.2014
And you added AmxLoad to the .def file?
Re: sampgdk -
RCON1 - 08.06.2014
No ;|
Thx works
It's sampgdk CallPublicFunction function?
Re: sampgdk -
xeeZ - 08.06.2014
amx_Exec
Re: sampgdk -
RCON1 - 08.06.2014
Well?
Код:
int SendCheatCall(int playerid, int cheat){
int idx;
int amxIndex = 0;
if (!amx_FindPublic(AimAmx, "OnPlayerCheatDetect", &amxIndex))
{
amx_Push(AimAmx, static_cast<cell>(cheat));
amx_Push(AimAmx, static_cast<cell>(playerid));
amx_Exec(AimAmx, NULL, amxIndex);
}
return 1;
}
On compile error:
My makefile
Код:
GPP = g++
GCC = gcc
forfun_OUTFILE = "4fun.so"
COMPILE_FLAGS = -std=c++0x -m32 -fPIC -c -I sampgdk-3.7-Linux/include/sampgdk/ -I /sampgdk-3.7-Linux/lib -w -D LINUX -D PROJECT_NAME=\"4Fun\"
forfun = -D forfun $(COMPILE_FLAGS)
all: forfun
clean:
-rm -f *~ *.o *.so
forfun: clean
$(GPP) $(forfun) *.cpp
$(GPP) -lsampgdk -m32 -fshort-wchar -shared -o $(forfun_OUTFILE) *.o
Re: sampgdk -
xeeZ - 08.06.2014
http://lmgtfy.com/?q=makefile+tutorial
Hint: you added the wrong directory to your include path