Same ip.
#1

Hello,

Every one got the same ip on my Server. Every one got : 192.168.0.103 < My Portforwarded Ip ... I Got sitecom WL-160 Router. Any one know how it cant work? I did al the Turtorials but it does'nt work.
Regards Arjan
Reply
#2

Quote:
Originally Posted by Arjan
Hello,

Every one got the same ip on my Server. Every one got : 192.168.0.103 < My Portforwarded Ip ... I Got sitecom WL-160 Router. Any one know how it cant work? I did al the Turtorials but it does'nt work.
Regards Arjan
With what did you checked that they got the same IP?
It's impossible.
Reply
#3

Make sure your using GetPlayerIp() to get the IP, and not some fancy function you ripped somewhere.
Reply
#4

Quote:
Originally Posted by -=[Serbish
=- ]
Quote:
Originally Posted by Arjan
Hello,

Every one got the same ip on my Server. Every one got : 192.168.0.103 < My Portforwarded Ip ... I Got sitecom WL-160 Router. Any one know how it cant work? I did al the Turtorials but it does'nt work.
Regards Arjan
With what did you checked that they got the same IP?
It's impossible.
With Incomming Conection : The Ip.

Its with every Script When im banning someone Every one is banned ... I use an script and it says Arjan Has joined the server with id 0 and ip: 192.168.0.103
Reply
#5

Oh, Sorry. Moderators Can you switch it?
Reply
#6

Put this under OnPlayerConnect
Code:
new string[256];
new playerip[24];
format(string,256,"Your IP is: %d",GetPlayerIp( playerid, playerip, 24 ));
SendClientMessage(playerid,COLOR_YELLOW,string);
and look for your IP if it's different than others or just use SendClientMessagToAll to check everyone's.
Reply
#7

Quote:
Originally Posted by -=[Serbish
=- ]
Put this under OnPlayerConnect
Code:
new string[256];
new playerip[24];
format(string,256,"Your IP is: %d",GetPlayerIp( playerid, playerip, 24 ));
SendClientMessage(playerid,COLOR_YELLOW,string);
and look for your IP if it's different than others or just use SendClientMessagToAll to check everyone's.
(2145) : error 021: symbol already defined: "string"
Line 2145 : new string[MAX_PLAYER_NAME];
Reply
#8

Quote:
Originally Posted by Arjan
Quote:
Originally Posted by -=[Serbish
=- ]
Put this under OnPlayerConnect
Code:
new string[256];
new playerip[24];
format(string,256,"Your IP is: %d",GetPlayerIp( playerid, playerip, 24 ));
SendClientMessage(playerid,COLOR_YELLOW,string);
and look for your IP if it's different than others or just use SendClientMessagToAll to check everyone's.
C:\Users\arie\Desktop\PEN LV\gamemodes\penlv.pwn(2145) : error 021: symbol already defined: "string"
Line 2145 : new string[MAX_PLAYER_NAME];
Just delete this string then from the line or call it "new str[256];".
Reply
#9

Deleted. :
Your ip is 13
Reply
#10

pawn Code:
new ipstring[128];
new playerip[24];
GetPlayerIp(playerid, playerip, 24);
format(ipstring,128,"Your IP is: %d", playerip);
SendClientMessage(playerid, COLOR_YELLOW, ipstring);
Reply
#11

pawn Code:
new playerip[24];
GetPlayerIp(playerid, playerip, 24);
SendClientMessage(playerid, COLOR_YELLOW, playerip);
GetPlayerIP() returns a string.
Reply
#12


Code:
public OnPlayerConnect(playerid)
{
new string[256];
new playerip[24];
format(string,256,"Your IP is: %d",GetPlayerIp( playerid, playerip, 24 ));
SendClientMessage(playerid,COLOR_YELLOW,string);
This is what i got now. Its PEN Btw
Reply
#13

My fault, try this.
Code:
new string[256];
new playerip[24];
format(string,256,"Your IP is: %s",GetPlayerIp( playerid, playerip, 24 ));
SendClientMessage(playerid,COLOR_YELLOW,string);
Reply
#14



Ip = 500 ?

public OnPlayerConnect(playerid)
{
Code:
public OnPlayerConnect(playerid)
{
new string[256];
new playerip[24];
format(string,256,"Your IP is: %s",GetPlayerIp( playerid, playerip, 24 ));
SendClientMessage(playerid,COLOR_YELLOW,string);
Reply
#15

Quote:
Originally Posted by Arjan


Ip = 500 ?

public OnPlayerConnect(playerid)
{
Code:
public OnPlayerConnect(playerid)
{
new string[256];
new playerip[24];
format(string,256,"Your IP is: %s",GetPlayerIp( playerid, playerip, 24 ));
SendClientMessage(playerid,COLOR_YELLOW,string);
Hmm weird.
It's a string because it contains points aswell, like: "11.111.111.11"
Reply
#16

try this

Code:
new ipstr[64];
new playerip[16];
GetPlayerIp(playerid, playerip, sizeof(playerip));
format(ipstr, sizeof(ipstr),"Your IP is: %s ",playerip);
SendClientMessage(playerid, COLOR_YELLOW, ipstr);
Reply
#17

Quote:
Originally Posted by Khelif
try this

Code:
new ipstr[64];
new playerip[16];
GetPlayerIp(playerid, playerip, sizeof(playerip));
format(ipstr, sizeof(ipstr),"Your IP is: %s ",playerip);
SendClientMessage(playerid, COLOR_YELLOW, ipstr);
Code:
(2235) : error 017: undefined symbol "string"
(2235) : error 017: undefined symbol "string"
(2235) : error 029: invalid expression, assumed zero
(2235) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Line 2235:
Code:
	format(string, sizeof(string), "%s.cer", plname);
Reply
#18

Quote:
Originally Posted by Arjan
Quote:
Originally Posted by Khelif
try this

Code:
new ipstr[64];
new playerip[16];
GetPlayerIp(playerid, playerip, sizeof(playerip));
format(ipstr, sizeof(ipstr),"Your IP is: %s ",playerip);
SendClientMessage(playerid, COLOR_YELLOW, ipstr);
Code:
(2235) : error 017: undefined symbol "string"
(2235) : error 017: undefined symbol "string"
(2235) : error 029: invalid expression, assumed zero
(2235) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Line 2235:
Code:
	format(string, sizeof(string), "%s.cer", plname);
Code:
new string[256];
Reply
#19

Quote:
Originally Posted by -=[Serbish
=- ]
Put this under OnPlayerConnect
Code:
new string[256];
new playerip[24];
format(string,256,"Your IP is: %d",GetPlayerIp( playerid, playerip, 24 ));
SendClientMessage(playerid,COLOR_YELLOW,string);
and look for your IP if it's different than others or just use SendClientMessagToAll to check everyone's.
Max string is 128 and max IP is 16, do you like wasing space?
Reply
#20

Quote:
Originally Posted by Mikep
Quote:
Originally Posted by -=[Serbish
=- ]
Put this under OnPlayerConnect
Code:
new string[256];
new playerip[24];
format(string,256,"Your IP is: %d",GetPlayerIp( playerid, playerip, 24 ));
SendClientMessage(playerid,COLOR_YELLOW,string);
and look for your IP if it's different than others or just use SendClientMessagToAll to check everyone's.
Max string is 128 and max IP is 16, do you like wasing space?
Actually, yes I prefer.
It's a habbit of me to use a string which is 256 cells big.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)