problems with adding callbacks [sampgdk]
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)