dini question [REP+]
#6

Quote:
Originally Posted by [Bios]Marcel
Посмотреть сообщение
Do you mean that u want to delete the files of all players?Or just one player file (or its content)?
Oh if you mean to RESET/REMOVE all the data on the players FILE then do it like this...

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;
}
I think something like that..
Reply


Messages In This Thread
dini question [REP+] - by radiobizza - 05.02.2016, 11:17
Re: dini question [REP+] - by Mencent - 05.02.2016, 11:19
Re: dini question [REP+] - by radiobizza - 05.02.2016, 11:20
Re: dini question [REP+] - by FarTooBaked - 05.02.2016, 11:46
Re: dini question [REP+] - by BiosMarcel - 05.02.2016, 11:47
Re: dini question [REP+] - by FarTooBaked - 05.02.2016, 11:54
Re: dini question [REP+] - by radiobizza - 05.02.2016, 12:03
Re: dini question [REP+] - by FarTooBaked - 05.02.2016, 12:11
Re: dini question [REP+] - by BiosMarcel - 05.02.2016, 12:24
Re: dini question [REP+] - by radiobizza - 05.02.2016, 12:45

Forum Jump:


Users browsing this thread: 2 Guest(s)