SA-MP Forums Archive
Crash issue. - 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: Crash issue. (/showthread.php?tid=388058)



Crash issue. - Laure - 27.10.2012

When a banned player attempts to log into my server it crashes.Is it because of a folder missing in scriptfiles.Heres the code.
Код:
	// Checking for rangeban
	new range[4][4];
	split(RPIP(playerid), range, '.');
	format(string, sizeof(string), "%s.%s.*.*", range[0], range[1]);
	if(CheckBan(string) == 1 && !dini_Int(file, "Whitelisted"))
	{
	    SetPlayerName(playerid, "BannedPlayer");
	    SendClientMessage(playerid, COLOR_DARKRED, "Xtreme Gaming: {FFFFFF}Your range is banned from this server. (You can request getting whitelisted at www.samp-xrp.co.cc)");
		Kick(playerid);
		return 1;
	}
	// Checking for IP ban
	if(CheckBan(RPIP(playerid)) == 1)
	{
	    SetPlayerName(playerid, "BannedPlayer");
	    SendClientMessage(playerid, COLOR_DARKRED, "Xtreme Gaming: {FFFFFF}You are banned from Xtreme Gaming Roleplay. (Make a ban appeal at www.samp-xrp.co.cc)");
		Kick(playerid);
		return 1;
	}
	// Checking for character ban
	if(dini_Int(file, "pBanned") == 1)
	{
	    SetPlayerName(playerid, "BannedPlayer");
	    SendClientMessage(playerid, COLOR_DARKRED, "SERVER: {FFFFFF}You are banned from this server. ( Make a ban appeal at www.samp-xrp.co.cc )");
	    AddBan(playerid);
	    Kick(playerid);
	    return 1;
	}
	return 1;
}



Re: Crash issue. - Laure - 27.10.2012

Anybody?


Re: Crash issue. - Laure - 27.10.2012

Helpmeanyone?