SA-MP Forums Archive
Dini Problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Dini Problem (/showthread.php?tid=178457)



Dini Problem - Ernis456 - 22.09.2010

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.



Re: Dini Problem - DeathOnaStick - 22.09.2010

Then try this function:
pawn Код:
fremove(filepath[]);
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").

I hope this helped you a bit.