Why is this happening? - 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: Why is this happening? (
/showthread.php?tid=309011)
Why is this happening? -
iTorran - 05.01.2012
Code:
pawn Код:
CMD:whatsmyip(playerid) // TEST COMMAND
{
new ip[16];
GetPlayerIp(playerid, ip, sizeof(ip));
print(ip);
return 1;
}
Console output:
Pretty much sums up my problem.
Re: Why is this happening? -
Tanush123 - 05.01.2012
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
Re: Why is this happening? -
iTorran - 05.01.2012
Strangely worked, thanks.
EDIT: When inserting into MySQL reverted to 255.255.255.255
Re: Why is this happening? -
Tanush123 - 06.01.2012
Umm you used onplayerdisconnect for ip saving?
Re: Why is this happening? -
iTorran - 06.01.2012
When they login, i update the IP
Re: Why is this happening? -
Tanush123 - 06.01.2012
show me the code please?