05.02.2016, 11:54
Quote:
Do you mean that u want to delete the files of all players?Or just one player file (or its content)?
|
pawn Код:
new ExampleInt[MAX_PLAYERS];
new Float:ExampleFloat[MAX_PLAYERS];
new ExampleString[MAX_PLAYERS][128];
public RemovePlayerDataFromFile(playerid)
{
new File[128];
format(File, sizeof(File), "FolderName/%s", GetPlayerNameEx(playerid));
if(dini_Exists(File))
{
dini_IntSet(File, "ExampleInt", 0);
dini_SetFloat(File, "ExampleFloat", 0.0);
dini_Set(File, "ExampleString", "");
}
return 1;
}