problems with adding callbacks
#1

Hello all. Sorry for my bad english. But i'll try to speak it.

After several failed attempts to add a callback (OnPlayerConnect) in a project using sampgdk (for writing a plugin), I decided to ask a question in this forum.

How to add OnPlayerConnect in the project?

In main.cpp added:

PHP код:
PLUGIN_EXPORT bool PLUGIN_CALL OnPlayerConnect (int playerid)
{
     
logprintf ("* Player connected!");
     return 
1;

And export.def:
PHP код:
OnPlayerConnect 
The problem is that these functions do not work when you connect the player to the console writes nothing
Reply


Messages In This Thread
problems with adding callbacks - by VaReNiX - 20.07.2014, 17:28
Re: problems with adding callbacks - by GWMPT - 21.07.2014, 10:38
Re: problems with adding callbacks - by VaReNiX - 21.07.2014, 11:26
Re: problems with adding callbacks - by xeeZ - 21.07.2014, 12:45
Re: problems with adding callbacks - by VaReNiX - 21.07.2014, 13:01
Re: problems with adding callbacks - by VaReNiX - 21.07.2014, 13:06
Re: problems with adding callbacks - by GWMPT - 21.07.2014, 13:06
Re: problems with adding callbacks - by VaReNiX - 21.07.2014, 13:30
Re: problems with adding callbacks - by GWMPT - 21.07.2014, 13:36
Re: problems with adding callbacks - by xeeZ - 21.07.2014, 13:37
Re: problems with adding callbacks - by VaReNiX - 21.07.2014, 14:21
Re: problems with adding callbacks - by VaReNiX - 21.07.2014, 14:26

Forum Jump:


Users browsing this thread: 2 Guest(s)