Ip detection problem
#1

Well hello again , i insert ip detection at login and its showing me just 49 instead of my ip?

pawn Код:
if (gPlayerAccount[playerid] != 0)
        {
            new plrIP[16];
            GetPlayerIp(playerid, plrIP, sizeof(plrIP));
            new loginstring[500];
            new loginname[64];
            GetPlayerName(playerid,loginname,sizeof(loginname));
            format(loginstring,sizeof(loginstring),"{FF0000}--------------------------------------\n\n{FFFFFF}Dobrodosli Nazad, \nVase ime : %s, \nVas IP : %d\nMolimo unesite vasu lozinku\n\n{FF0000}--------------------------------------",loginname ,plrIP);
            ShowPlayerDialog(playerid,12346,DIALOG_STYLE_PASSWORD,"Login",loginstring,"OK","Izlaz");
        }
PICTURE :
Reply
#2

GetPlayerIp returns a string. So use %s, not %d
Reply
#3

Thanks man , rep +
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)