fremove?
#1

https://sampwiki.blast.hk/wiki/Fremove

That works only in Scriptfiles folder?
I have users folder in Scriptfiles.

Код:
/Root/
/Root/scriptfiles
/Root/scriptfiles/users
Like Picharelo.ini

/Root/scriptfiles/users/Picharelo.ini

Then:

fremove("/users/Picharelo.ini"); ?

Код:
 	new plname[MAX_PLAYER_NAME];
 	GetPlayerName(playerid, plname, sizeof(plname));
 	new namestring = strfind(plname, "_", true);
 	if(namestring == -1)
	{
		SendClientMessage(playerid, COLOR_YELLOW2, "[NIMIKONTROLLIJA] Su nimi ei ole sobiv!");
		SendClientMessage(playerid, COLOR_YELLOW2, "[NIMIKONTROLLIJA] Su nimi peab olema formaatides Eesnimi_Perenimi.");
 	 	fremove(plname);
		Kick(playerid);
		return 1;
	}
Reply
#2

Код:
 	new plname[MAX_PLAYER_NAME],str[36];
 	GetPlayerName(playerid, plname, sizeof(plname));
	format(str,36,"/users/%s.ini",plname);
 	new namestring = strfind(plname, "_", true);
 	if(namestring == -1)
	{
		SendClientMessage(playerid, COLOR_YELLOW2, "[NIMIKONTROLLIJA] Su nimi ei ole sobiv!");
		SendClientMessage(playerid, COLOR_YELLOW2, "[NIMIKONTROLLIJA] Su nimi peab olema formaatides Eesnimi_Perenimi.");
 	 	if(fexist(str)) fremove(str);
		Kick(playerid);
		return 1;
	}
Only works in scriptfiles folder
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)