SA-MP Forums Archive
problems with adding callbacks [sampgdk] - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: problems with adding callbacks [sampgdk] (/showthread.php?tid=527175)



problems with adding callbacks [sampgdk] - VaReNiX - 21.07.2014

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