OnIncomingConnection Help
#1

OnIncomingConnection is not being called at all. I was using it for testing how efficient it is, and it didnt even do anything.
Код:
public OnIncomingConnection(playerid, ip_address[], port)
{
    printf("Incoming connection for player ID %i[IP/port: %s:%i]", playerid,ip_address, port);
    return 1;
}
  1. Its inside FilterScript
  2. a_samp is the only include added
  3. Only one filterscript added, for testing
  4. I can see "Incoming Connection IP:Port" in Server prompt but not ma custom message
Reply
#2

see if there is return 0; in any inc that u used in game mode or in gamemode
Reply
#3

This is the first time I am using the call-back in any of my script. GameMode is custom made and it doesnt have the callback mentioned anywhere in it. And I used a_samp.inc only, nothing else.
Reply
#4

Bump
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)