Ip detection problem - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Ip detection problem (
/showthread.php?tid=443433)
Ip detection problem -
Stereotype - 12.06.2013
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 :
Re: Ip detection problem -
Richie© - 12.06.2013
GetPlayerIp returns a string. So use %s, not %d
Re: Ip detection problem -
Stereotype - 12.06.2013
Thanks man , rep +