dini_Remove doesn't work for me and I don't why. Theres script :
Код:
GetPlayerName(playerid, LyderioName, sizeof(LyderioName));
GetPlayerName(pid, pidName, sizeof(pidName));
format(string, sizeof(string), " %s (ID: %d) Removed from gang%s ", LyderioName, playerid, pidName, pid);
SendClientMessage(playerid,spalva, string);
SendClientMessage(pid,spalva, string);
print(string);
PlayerInfo[pid][GangMember] = 0;
GetPlayerName(pid, PlayerName, sizeof(PlayerName));
format(Gstring, sizeof(Gstring), "Gaujos/Nariai/%s.ini", PlayerName);
dini_Remove(PlayerName);
dini_Remove(Gstring);
dini_IntSet(Gstring,"Boss",0);
dini_IntSet(Gstring,"GangMember",0);
dini_IntSet(Gstring,"Rang",0);
PlayerInfo[pid][Boss] = 0;
PlayerInfo[pid][GangMember] = 0;
PlayerInfo[pid][Rang] = 0;
etc.
Should actually do exactly the same. Be sure that you don't forget the .ini ending of the file, so the filepath is not "Filename", but "Filename.ini". In addition be sure that you have the correct folders given and created, if you use folders (like this: "foldername/filename.ini").