rdns function help!
#1

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;
}
Reply
#2

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.
Reply
#3

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.
Reply
#4

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.
Reply
#5

I suggest you to ask Incognito as he is the person made the plugin.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)