Posts: 232
Threads: 36
Joined: Oct 2012
Reputation:
0
Is there a special function to get the IP of where the server is running on? Well, I know one way.. connecting an NPC and getting its IP. Is there another way?
Posts: 368
Threads: 24
Joined: Feb 2012
You can do it this way, but you have to put the IP in server.cfg under 'bind'.
pawn Код:
new serverip[16];
GetServerVarAsString("bind", serverip, sizeof (serverip));
Posts: 251
Threads: 24
Joined: Apr 2007
Reputation:
0
If he is going to bind his server to an IP, he might as well just write the IP into a string manually : )
Posts: 251
Threads: 24
Joined: Apr 2007
Reputation:
0
Why do you want to get the IP of your server?