[HELP]Writing IP to File - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP]Writing IP to File (
/showthread.php?tid=186631)
[HELP]Writing IP to File -
r3k1lLz_ - 30.10.2010
Can anyone help me with writing a players IP to a File? I'm using it for my reg system for auto login, I've tried and it doesn't work.
This is my function I made for onplayerdiscconect
public SaveStats(playerid)
{
new filename[128];
format(filename, sizeof(filename), "Accounts/" ACCOUNT_PREFIX "%s.ini", PlayerName(playerid));
dini_IntSet(filename, "Cash", GetPlayerCash(playerid));
}
Can anyone make it so Dini creates a line with the IP on it? since my error says argument dis match or something like that.
(Also I know Dini is shit

)
Re: [HELP]Writing IP to File -
r3k1lLz_ - 30.10.2010
help anyone?
Re: [HELP]Writing IP to File -
JamesC - 30.10.2010
pawn Код:
new tmpIP[16];
GetPlayerIp(playerid, tmpIP, 16);
dini_Set(filename, "IP", tmpIP);
Re: [HELP]Writing IP to File -
r3k1lLz_ - 30.10.2010
Thanks mate