[HELP]Help with a command to save ip
#4

This work, but is Ip only.


Код:
//By IP
stock SaveIP(const Ip[])
{
	new Str[20], File: FileIp = fopen("SaveIP.txt", io_append);
	
	format(Str, 20, "%s\r\n", Ip);
	fwrite(FileIp, Str);
	fclose(FileIp);
	
	return true;
}

//By ID
stock SaveIP(playerid)
{
	new Str[20], GetIp[16], File: FileIp = fopen("SaveIP.txt", io_append);
	
	GetPlayerIp(playerid, GetIp, 16);
	
	format(Str, 20, "%s\r\n", GetIp);
	fwrite(FileIp, Str);
	fclose(FileIp);
	
	return true;
}
Reply


Messages In This Thread
[HELP]Help with a command to save ip - by StrikerZ - 09.08.2016, 15:37
Re: [HELP]Help with a command to save ip - by Freaksken - 09.08.2016, 21:02
Re: [HELP]Help with a command to save ip - by StrikerZ - 10.08.2016, 12:58
Re: [HELP]Help with a command to save ip - by F1N4L - 10.08.2016, 13:09
Re: [HELP]Help with a command to save ip - by StrikerZ - 10.08.2016, 13:20
Re: [HELP]Help with a command to save ip - by F1N4L - 10.08.2016, 13:23
Re: [HELP]Help with a command to save ip - by StrikerZ - 10.08.2016, 13:34
Re: [HELP]Help with a command to save ip - by F1N4L - 10.08.2016, 13:46
Re: [HELP]Help with a command to save ip - by StrikerZ - 10.08.2016, 13:53
Re: [HELP]Help with a command to save ip - by F1N4L - 10.08.2016, 14:07

Forum Jump:


Users browsing this thread: 2 Guest(s)