sampgdk
#1

Can I ask someone to toss the plugin project using the current sampgdk?

It's about a basic plugin
Reply
#2

What do you mean with "toss the plugin project using the current sampgdk?"
Reply
#3

Compiling the plugin with sampgdk

Sorry for my English
Reply
#4

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.
Reply
#5

You send it to me (in a pack .zip / rar)?
Reply
#6

Check the sampgdk thread, there will be a direct link for the files.
Reply
#7

I do not see him anywhere, Aim me at him.
Reply
#8

https://sampforum.blast.hk/showthread.php?tid=421090
Not that hard.
Reply
#9

The idea was that I could not find a download for windows.

Another question that can be added in sampgdk native?
Reply
#10

If you don't know how to use it, then don't
Reply
#11

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
Reply
#12

It does not detect my function

Plugin: http://pastebin.com/raw.php?i=JKxSkbzY
effect
Reply
#13

edit: nevermind, didn't read properly.
Reply
#14

Quote:
Originally Posted by RCON1
Посмотреть сообщение
It does not detect my function

Plugin: http://pastebin.com/raw.php?i=JKxSkbzY
effect
Did you add the SUPPORTS_AMX_NATIVES flag to Supports()?
Reply
#15

Yes, I do and I have same problem again. I really don't know how to fix this
Reply
#16

And you added AmxLoad to the .def file?
Reply
#17

No ;|

Thx works

It's sampgdk CallPublicFunction function?
Reply
#18

amx_Exec
Reply
#19

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
Reply
#20

http://lmgtfy.com/?q=makefile+tutorial

Hint: you added the wrong directory to your include path
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)