rdns function help! -
NaTkAkN - 17.02.2012
Hey guys, I wanted to ask you how do you call the function RDNS in the callback onplayerconnect!
The script is this:
public OnReverseDNS (ip [], host [] extra){
new strDNS[256];
printf("OnReverseDNS(% s,% s,% d)",ip,host,extra);
format(strDNS,sizeof(strDNS),"DNS: %s || IP: %s",host,ip);
for (new i = 0; i <MAX_SERVER_PLAYERS; i++){
if (IsPlayerConnected (i)){
if (PlayerInfo [i] [lAdmin]> = 1 | | IsPlayerAdmin (i)){
SendClientMessage (i, White, "NEW JOIN FROM:");
SendClientMessage (i, Grey, strDNS);}}}
return 1;
}
Re: rdns function help! -
KingHual - 17.02.2012
pawn Код:
OnPlayerConnect(playerid)
{
new IP[16];
GetPlayerIP(playerid, IP, sizeof(IP));
CallLocalFunction("OnReverseDNS", "ssi", IP, host, extra);
}
I don't know how you can find the host out though, so I left it to you.
Re: rdns function help! -
NaTkAkN - 17.02.2012
C:\Users\Nathan\Desktop\asd\gamemodes\mysql.pwn(66

: error 017: undefined symbol "host"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
Re: rdns function help! -
KingHual - 17.02.2012
Quote:
Originally Posted by NaTkAkN
C:\Users\Nathan\Desktop\asd\gamemodes\mysql.pwn(66  : error 017: undefined symbol "host"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
|
Did you even read what I said? I DON'T KNOW WHAT "Host" IS USED FOR.
Re: rdns function help! -
Konstantinos - 17.02.2012
I suggest you to ask Incognito as he is the person made the plugin.