#4

I'm busy IRL < Take these basically all you need


Код:
new string[128], giveplayerid;
new playername[MAX_PLAYER_NAME];				
SetPlayerName(giveplayerid, newname);
OnPlayerStatsUpdate(giveplayerid);

				format(newname, sizeof(newname), "users/%s.ini", playername);
				fremove(newname);

				if(doesAccountExist(playername))  // If it doesn't get removed, blank the file with write io and check its length when a player attempts to authenticate (it'll be 0)
				{
					new File: BlankTheFile = fopen(newname, io_write);
					SendClientMessageEx(playerid, COLOR_GRAD2, "The old account couldn't be removed completely (it's been blanked for future use).");
					fclose(BlankTheFile);
Reply


Messages In This Thread
How? - by Johnson_Brooks - 26.08.2012, 01:34
Re: How? - by ikkentim - 26.08.2012, 01:37
Re: How? - by Johnson_Brooks - 26.08.2012, 01:40
Re: How? - by Akira297 - 26.08.2012, 01:43
Re: How? - by ikkentim - 26.08.2012, 01:44
Re: How? - by UnknownGamer - 26.08.2012, 01:48
Re: How? - by Johnson_Brooks - 26.08.2012, 02:39

Forum Jump:


Users browsing this thread: 1 Guest(s)