Same ip. -
Arjan - 04.01.2009
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
Re: Same ip. -
Serbish - 04.01.2009
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.
Re: Same ip. -
Zezombia - 04.01.2009
Make sure your using GetPlayerIp() to get the IP, and not some fancy function you ripped somewhere.
Re: Same ip. -
Arjan - 04.01.2009
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
Re: Same ip. -
Arjan - 04.01.2009
Oh, Sorry. Moderators Can you switch it?
Re: Same ip. -
Serbish - 04.01.2009
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.
Re: Same ip. -
Arjan - 04.01.2009
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];
Re: Same ip. -
Serbish - 04.01.2009
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];".
Re: Same ip. -
Arjan - 04.01.2009
Deleted. :
Your ip is 13
Re: Same ip. -
FUNExtreme - 04.01.2009
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);
Re: Same ip. -
Antironix - 04.01.2009
pawn Code:
new playerip[24];
GetPlayerIp(playerid, playerip, 24);
SendClientMessage(playerid, COLOR_YELLOW, playerip);
GetPlayerIP() returns a string.
Re: Same ip. -
Arjan - 04.01.2009
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
Re: Same ip. -
Serbish - 04.01.2009
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);
Re: Same ip. -
Arjan - 04.01.2009
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);
Re: Same ip. -
Serbish - 04.01.2009
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"
Re: Same ip. -
Khelif - 04.01.2009
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);
Re: Same ip. -
Arjan - 04.01.2009
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);
Re: Same ip. -
Serbish - 04.01.2009
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);
|
Re: Same ip. -
Mikep - 04.01.2009
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?
Re: Same ip. -
Serbish - 04.01.2009
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.