SA-MP Forums Archive
This Not Work Why - 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)
+--- Thread: This Not Work Why (/showthread.php?tid=638194)



This Not Work Why - Speaker - 28.07.2017

Код:
CMD:unbanofflineplayer(playerid, params[])
{
	new tname[24];
	if(sscanf(params, "s[24]", tname)) return SendClientMessage(playerid,-1,"Correct Usage: /unbanofflineplayer [Player Name] ");
	new filestring[79];
	format(filestring, sizeof(filestring), "/ladmin/users/%s.sav", tname);
	if(!dini_Exists(filestring)) return SendClientMessage(playerid,COLOR_RED, "The name you've chosen was not found in our database ");
	else
	{
        dini_IntSet(filestring, "banned", 0);
        new cmdstring[145];
		format(cmdstring, sizeof(cmdstring), "unbanip %s", dini_Get(filestring, "bip"));
		SendRconCommand(cmdstring);
		SendRconCommand("reloadbans");
		new done[128];
		format(done, sizeof(done),"You have successfully unbanned %s", tname);
		SendClientMessage(playerid, -1,done);
	}
	return 1;
}
Plzz Help me Guys This CMD Says Name Not found In Database if i use it please help


Re: This Not Work Why - MrAjusshi - 28.07.2017

Are you sure " /ladmin/users/%s.sav " is the right part?


Re: This Not Work Why - Shinja - 28.07.2017

Go check manually if there is the .sav file in your location


Re: This Not Work Why - Xeon™ - 28.07.2017

post your ban command.