Help me please(Dini)
#1

Hello !
I have a problem, I created this code:
Код:
  
 new string[256],pname[MAX_PLAYER_NAME],ip[20];
  GetPlayerName(playerid, pname, sizeof(pname));
  GetPlayerIp(playerid,ip,sizeof(ip));
  
  format(string,sizeof(string),"players/%s.txt", pname);
  	if(!dini_Exists(string))
	{
	dini_Create(string);
	print("\n File Created");
	}
 	dini_Set(string,"Ip",ip[playerid]);
In the line "Ip" Recorded IP player, BUT: Every time a player connect IP rewritten, must be seen to all its IP through which it Connect
Help me please.
Reply
#2

up...
Reply
#3

'You can bump topics when you have no reply for at least 12 hours.'
Reply
#4

Sorry..
Reply
#5

Maybe change this

pawn Код:
dini_Set(string,"Ip",ip[playerid]);
to this

pawn Код:
dini_Set(string,"Ip",ip);
Reply
#6

Quote:
Originally Posted by MadeMan
Maybe change this

pawn Код:
dini_Set(string,"Ip",ip[playerid]);
to this

pawn Код:
dini_Set(string,"Ip",ip);
No. ..
do not change..
Reply
#7

up..
Reply
#8

'You can bump topics when you have no reply for at least 12 hours.'
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)