OnIncomingConnection Help - 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: OnIncomingConnection Help (
/showthread.php?tid=543735)
OnIncomingConnection not being called -
Mic_H - 28.10.2014
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;
}
- Its inside FilterScript
- a_samp is the only include added
- Only one filterscript added, for testing
- I can see "Incoming Connection IP:Port" in Server prompt but not ma custom message
Re: OnIncomingConnection Help -
AroseKhanNiazi - 28.10.2014
see if there is return 0; in any inc that u used in game mode or in gamemode
Re: OnIncomingConnection Help -
Mic_H - 28.10.2014
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.
Re: OnIncomingConnection Help -
Mic_H - 29.10.2014
Bump