Why is this happening?
#1

Code:
pawn Код:
CMD:whatsmyip(playerid) // TEST COMMAND
{
    new ip[16];
    GetPlayerIp(playerid, ip, sizeof(ip));
    print(ip);
    return 1;
}
Console output:
Код:
255.255.255.255
Pretty much sums up my problem.
Reply
#2

pawn Код:
CMD:whatismyip(playerid,params[])
{
    new ip[50];
    GetPlayerIp(playerid,ip,sizeof(ip));
    format(str,sizeof(str),"%s",ip);
    print(str);
    return 1;
}
try that
Reply
#3

Strangely worked, thanks.
EDIT: When inserting into MySQL reverted to 255.255.255.255
Reply
#4

Umm you used onplayerdisconnect for ip saving?
Reply
#5

When they login, i update the IP
Reply
#6

show me the code please?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)