[Pomoc] Error

Započeo DruzenjeVocko, April 16, 2012, 00:45:47 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: Raven's
Detaljan opis problema: Izbacuje mi errore u vezi Bans logina,ispod u dio skripte cu vam staviti gde mi to izbacuje errore.
Dio skripte:    format(bancheck, sizeof(bancheck),"LARP/Users/Bans/%s.ban",playersip);

   if(dini_Exists(bancheck))
   {
       ClearChatbox(playerid, 10);

      if(!strcmp(dini_Get(bancheck,"BanName"),plname,true))
      {
          SendClientMessage(playerid, COLOR_NICERED,"=======================================YOU ARE BANNED======================================");
         SendClientMessage(playerid, COLOR_LIGHTRED,"This Nickname is banned from this Server, And never was unbanned.");
         SendClientMessage(playerid, COLOR_LIGHTRED,"If you wish to be unbanned please visit our website at <changeme>");
         SendClientMessage(playerid, COLOR_LIGHTRED,"Ban Evading will result in a Permanent Range Ban.");
         SendClientMessage(playerid, COLOR_NICERED,"=======================================BAN INFORMATION===================================");
         format(msg2,sizeof(msg2),"Ban issued by administrator: %s",dini_Get(bancheck,"BannedBy"));
         SendClientMessage(playerid, COLOR_WHITE,msg2);
         format(msg2,sizeof(msg2),"Ban issued on: %s",dini_Get(bancheck,"BanDate"));
         SendClientMessage(playerid, COLOR_WHITE,msg2);
         format(msg2,sizeof(msg2),"Ban Reason: %s",dini_Get(bancheck,"BanReason"));
         SendClientMessage(playerid, COLOR_WHITE,msg2);
         SendClientMessage(playerid, COLOR_NICERED,"========================================YOU ARE BANNED=======================================");

          format(msg2,sizeof(msg2),"[ADMIN]: %s (%d), Has been kicked for Possible Ban Evading",plname,playerid);
          SendAdminMessage(COLOR_LIGHTRED,msg2);

          format(msg2,sizeof(msg2),"(%d/%d/%d) [%d:%d:%d] %s Has been kicked by the anticheat for Possible Ban Evading",d,m,y,h,mi,s,plname);
          KickLog(msg2);

            OnPlayerUpdateEx(playerid);
          SetTimerEx("KickPlayerOut",500,false,"i",playerid);
          return 0;
      }
Neke slike/video za lakse dobivanje pomoci(neobavezno):

pa nisi definisi bancheck ili kako vec
RESPECT FOR MILANCE !

Pa jel treba new i forward da se doda ? ako moze malo da mi objasnis pocetnik sam scriptanja :)

Mozeli neko da mi pomogne  ;) u vezi ovog problema

Nedim_Gun

Nisam siguran al probaj #define bancheck Znaci nisam siguram pa probaj na svoju odgovornost

Sad mi izbacuje ove Errore nisu isti




Evo ti do kraja cela.

format(bancheck, sizeof(bancheck),"LARP/Users/Bans/%s.ban",playersip);

	if(dini_Exists(bancheck))
	{
	    ClearChatbox(playerid, 10);

		if(!strcmp(dini_Get(bancheck,"BanName"),plname,true))
		{
		    SendClientMessage(playerid, COLOR_NICERED,"=======================================YOU ARE BANNED======================================");
			SendClientMessage(playerid, COLOR_LIGHTRED,"This Nickname is banned from this Server, And never was unbanned.");
			SendClientMessage(playerid, COLOR_LIGHTRED,"If you wish to be unbanned please visit our website at <changeme>");
			SendClientMessage(playerid, COLOR_LIGHTRED,"Ban Evading will result in a Permanent Range Ban.");
			SendClientMessage(playerid, COLOR_NICERED,"=======================================BAN INFORMATION===================================");
			format(msg2,sizeof(msg2),"Ban issued by administrator: %s",dini_Get(bancheck,"BannedBy"));
			SendClientMessage(playerid, COLOR_WHITE,msg2);
			format(msg2,sizeof(msg2),"Ban issued on: %s",dini_Get(bancheck,"BanDate"));
			SendClientMessage(playerid, COLOR_WHITE,msg2);
			format(msg2,sizeof(msg2),"Ban Reason: %s",dini_Get(bancheck,"BanReason"));
			SendClientMessage(playerid, COLOR_WHITE,msg2);
			SendClientMessage(playerid, COLOR_NICERED,"========================================YOU ARE BANNED=======================================");

		    format(msg2,sizeof(msg2),"[ADMIN]: %s (%d), Has been kicked for Possible Ban Evading",plname,playerid);
		    SendAdminMessage(COLOR_LIGHTRED,msg2);

		    format(msg2,sizeof(msg2),"(%d/%d/%d) [%d:%d:%d] %s Has been kicked by the anticheat for Possible Ban Evading",d,m,y,h,mi,s,plname);
		    KickLog(msg2);

            OnPlayerUpdateEx(playerid);
		    SetTimerEx("KickPlayerOut",500,false,"i",playerid);
		    return 0;
		}
		else
		{
		    SendClientMessage(playerid, COLOR_NICERED,"=======================================YOU ARE BANNED======================================");
			SendClientMessage(playerid, COLOR_LIGHTRED,"This IP Number is banned from this Server, And never was unbanned.");
			SendClientMessage(playerid, COLOR_LIGHTRED,"If you wish to be unbanned please visit our website at <changeme>");
			SendClientMessage(playerid, COLOR_LIGHTRED,"Ban Evading will result in a Permanent Range Ban.");
			SendClientMessage(playerid, COLOR_NICERED,"=======================================BAN INFORMATION=====================================");
            format(msg2,sizeof(msg2),"Name of the account Banned on the ip %s: %s",playersip, dini_Get(bancheck,"BanName"));
			SendClientMessage(playerid, COLOR_WHITE,msg2);
			format(msg2,sizeof(msg2),"Ban issued by administrator: %s",dini_Get(bancheck,"BannedBy"));
			SendClientMessage(playerid, COLOR_WHITE,msg2);
			format(msg2,sizeof(msg2),"Ban issued on date: %s",dini_Get(bancheck,"BanDate"));
			SendClientMessage(playerid, COLOR_WHITE,msg2);
			format(msg2,sizeof(msg2),"Ban Reason: %s",dini_Get(bancheck,"BanReason"));
			SendClientMessage(playerid, COLOR_WHITE,msg2);
			SendClientMessage(playerid, COLOR_NICERED,"========================================YOU ARE BANNED=======================================");

		    format(msg2,sizeof(msg2),"[ADMIN]: %s (%d), Has been kicked for Possible Ban Evading",plname,playerid);
		    SendAdminMessage(COLOR_LIGHTRED,msg2);

		    format(msg2,sizeof(msg2),"(%d/%d/%d) [%d:%d:%d] %s Has been kicked by the anticheat for Possible Ban Evading",d,m,y,h,mi,s,plname);
		    KickLog(msg2);

		    format(msg2,sizeof(msg2),"LARP/Users/%s.ini",plname);
		    if(dini_Exists(msg2))
		    {
		        dini_IntSet(msg2,"Banned",1);
			}

		    OnPlayerUpdateEx(playerid);
		    SetTimerEx("KickPlayerOut",500,false,"i",playerid);
		    return 0;
		}
	}

	format(bancheck, sizeof(bancheck),"LARP/Users/%s.ini",plname);
	if(dini_Exists(bancheck))
	{
	    if(dini_Int(bancheck,"Banned") == 1)
	    {
	        ClearChatbox(playerid, 10);

	        SendClientMessage(playerid, COLOR_NICERED,"=======================================YOU ARE BANNED=======================================");
			SendClientMessage(playerid, COLOR_LIGHTRED,"This Name is banned from this Server, And never was unbanned.");
			SendClientMessage(playerid, COLOR_LIGHTRED,"If you wish to be unbanned please visit our website at <changeme>");
			SendClientMessage(playerid, COLOR_LIGHTRED,"Ban Evading will result in a Permanent Range Ban.");
			SendClientMessage(playerid, COLOR_NICERED,"============================================================================================");
		    format(msg2,sizeof(msg2),"[ADMIN]: %s (%d), Has been banned for Possible Ban Evading",plname,playerid);
		    SendAdminMessage(COLOR_LIGHTRED,msg2);
		    format(msg2,sizeof(msg2),"[ADMIN]: IP %s has been added to the ban list by Anticheat Peter Griffin",playersip);
		    SendAdminMessage(COLOR_WHITE,msg2);

		    format(msg2,sizeof(msg2),"(%d/%d/%d) [%d:%d:%d] %s Has been kicked by the anticheat for Possible Ban Evading",d,m,y,h,mi,s,plname);
		    KickLog(msg2);

		    SetTimerEx("ScriptBan",500,false,"iis",playerid,999,"Ban Evading");
		    return 0;
		}
	}
	
	format(pFILE[playerid], 128, "LARP/Users/Aliases/%s.txt", plname);
	dini_Create(pFILE[playerid]);
	dini_Set(pFILE[playerid], "Nameip", playersip);

	if(strlen(dini_Get("LARP/Users/Aliases/ips.txt", plname)) == 0)
   	{
	   	dini_Set("LARP/Users/Aliases/ips.txt", plname, playersip);
	}
	else
	{
		if( strfind( dini_Get("LARP/Users/Aliases/ips.txt", plname), playersip, true) == -1 )
		{
			format(string,sizeof(string),"%s, %s", dini_Get("LARP/Users/Aliases/ips.txt",plname), playersip);
			dini_Set("LARP/Users/Aliases/ips.txt", plname, string);
		}
	}

	new pAKA[256];
	pAKA = dini_Get("LARP/Users/Aliases/alias.txt",playersip);
	new pIPs[256];
	pIPs = dini_Get("LARP/Users/Aliases/ips.txt",plname);

	if (strlen(pAKA) < 3)
	{
		format(string,sizeof(string),"[INFO]: %s (%d) has joined Raven's Roleplay. (%s)", plname, playerid,playersip);
		if (strlen(pIPs) < 3) SendIP = 0;
		else if (!strcmp(pIPs,playersip,true)) SendIP = 0;
		else
		{
		    if(strlen(pIPs) >= 128)
		    {
		        format(string2,sizeof(string2),"* %s (%d)'s Other IPs: -Too Many, Be Careful-", plname, playerid);
			}
			else
			{
				format(string2,sizeof(string2),"* %s (%d)'s Other IPs: %s", plname, playerid, pIPs);
			}
			SendIP = 1;
		}
	}
	else if (!strcmp(pAKA,plname,true))
	{
		format(string,sizeof(string),"[INFO]: %s (%d) has joined Raven's Roleplay. (%s)", plname, playerid,playersip);
		if (strlen(pIPs) < 3) SendIP = 0;
		else if (!strcmp(pIPs,playersip,true)) SendIP = 0;
		else
		{
		    if(strlen(pIPs) >= 128)
		    {
		        format(string2,sizeof(string2),"* %s (%d)'s Other IPs: -Too Many, Be Careful-", plname, playerid);
			}
			else
			{
				format(string2,sizeof(string2),"* %s (%d)'s Other IPs: %s", plname, playerid, pIPs);
			}
			SendIP = 1;
		}
	}
	else
	{
		format(string,sizeof(string),"[INFO]: %s (%d) has joined the Server (%s). (Alias: %s)", plname, playerid,playersip, pAKA);
		if (strlen(pIPs) < 3) SendIP = 0;
		else if (!strcmp(pIPs,playersip,true)) SendIP = 0;
		else
		{
		    if(strlen(pIPs) >= 128)
		    {
		        format(string2,sizeof(string2),"* %s (%d)'s Other IPs: -Too Many, Be Careful-", plname, playerid);
			}
			else
			{
				format(string2,sizeof(string2),"* %s (%d)'s Other IPs: %s", plname, playerid, pIPs);
			}
			SendIP = 1;
		}
	}

	for(new i = 0; i < MAX_PLAYERS; i++)
	{
		if(IsPlayerConnected(i) && playerid != i)
		{
			if(PlayerInfo[i][pAdmin] > 1)
			{
				SendClientMessage(i,COLOR_GREEN,string);
				if(SendIP == 1)
				{
					SendClientMessage(i,COLOR_GREEN,string2);
					SendIP = 0;
				}
			}
			else
			{
				format(string,sizeof(string),"* %s (%d) has joined Raven's Roleplay", plname, playerid);
				SendClientMessage(i,COLOR_GREY,string);
			}
		}
	}
	
	format(string, sizeof(string), "LARP/Users/%s.ini", plname);
	SendClientMessage(playerid, COLOR_YELLOW2, "Molimo sacekajte...");
	if(fexist(string))
	{
		gPlayerAccount[playerid] = 1;
	}
	else
	{
		gPlayerAccount[playerid] = 0;
	}
	//fclose(hFile);
	

	return 1;
}

Nedim_Gun

format(bancheck, sizeof(bancheck),"LARP/Users/%s.ini",plname);
	
	if(dini_Exists(bancheck))
	{
		PlayerInfo[playerid][pBanned] = dini_Int(bancheck,"Banned");
		if(PlayerInfo[playerid][pBanned] == 1)
		{
		    SendClientMessage(playerid, COLOR_NICERED,"This Name is Banned from the Server and was never unbanned.");
		    SendClientMessage(playerid, COLOR_LIGHTBLUE,"* If you want to play must post an unban request at our Forums.");
		    SendClientMessage(playerid, COLOR_LIGHTBLUE,"* You can visit our website at <changeme>."); // add your website
		    SendClientMessage(playerid, COLOR_NICERED,"Ban Evading may get you banned permanentely!!");
		    
		    format(msg2,sizeof(msg2),"[ADMIN]: %s (%d), Has been Banned for Possible Ban Evading",plname,playerid);
		    SendAdminMessage(COLOR_LIGHTRED,msg2);
		    format(msg2,sizeof(msg2),"[ADMIN]: IP %s has been added to the ban list by Anticheat Peter Griffin",playersip);
		    SendAdminMessage(COLOR_WHITE,msg2);
		    
		    format(msg2,sizeof(msg2),"(%d/%d/%d) [%d:%d:%d] %s Has been banned by the anticheat for Possible Ban Evading",d,m,y,h,mi,s,plname);
		    BanLog(msg2);
		    BanEx(playerid, "Ban Evading");
		}
	}
	
	if(AntiName == 1)
	{
	 	if(namestring == -1)
		{
		    format(string, sizeof(string),"%s, Has been kicked by the Anticheat Peter Griffin for Having an Unvalid Name",plname);
			SendClientMessageToAll(COLOR_NICERED, string);
			SendClientMessage(playerid, COLOR_YELLOW2, "Immigration Department: Your name is not acceptable.");
			SendClientMessage(playerid, COLOR_YELLOW2, "Hint: Your name must be in the format Firstname_Lastname.");
			format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] Anticheat Has Kicked %s for Invalid Name",d,m,y,h,mi,s,plname);
			KickLog(string);
			Kick(playerid);
			return 1;
		}
	}
 	if(IsPlayerNPC(playerid))
  	{
   		SpawnPlayer(playerid);
     	return 1;
   	}
   	
   	format(pFILE[playerid], 128, "LARP/Users/Aliases/%s.txt", plname);
	dini_Create(pFILE[playerid]);
	dini_Set(pFILE[playerid], "Nameip", playersip);
   	
	if(strlen(dini_Get("LARP/Users/Aliases/ips.txt", plname)) == 0)
   	{
	   	dini_Set("LARP/Users/Aliases/ips.txt", plname, playersip);
	}
	else
	{
		if( strfind( dini_Get("LARP/Users/Aliases/ips.txt", plname), playersip, true) == -1 )
		{
			format(string,sizeof(string),"%s, %s", dini_Get("LARP/Users/Aliases/ips.txt",plname), playersip);
			dini_Set("LARP/Users/Aliases/ips.txt", plname, string);
		}
	}
   	
	new pAKA[256];
	pAKA = dini_Get("LARP/Users/Aliases/alias.txt",playersip);
	new pIPs[256];
	pIPs = dini_Get("LARP/Users/Aliases/ips.txt",plname);
	
	if (strlen(pAKA) < 3)
	{
		format(string,sizeof(string),"[INFO]: %s (%d) has joined Raven's Roleplay. (%s)", plname, playerid,playersip);
		if (strlen(pIPs) < 3) { }
		else if (!strcmp(pIPs,playersip,true)) { }
		else
		{
			format(string2,sizeof(string2),"[INFO]: %s (%d)'s Other IPs: %s", plname, playerid, pIP);
			SendIP = 1;
		}
	}
	else if (!strcmp(pAKA,plname,true))
	{
		format(string,sizeof(string),"[INFO]: %s (%d) has joined Raven's Roleplay. (%s)", plname, playerid,playersip);
		if (strlen(pIPs) < 3) { }
		else if (!strcmp(pIPs,playersip,true)) { }
		else
		{
			format(string2,sizeof(string2),"[INFO]: %s (%d)'s Other IPs: %s", plname, playerid, pIP);
			SendIP = 1;
		}
	}
	else
	{
		format(string,sizeof(string),"[INFO]: %s (%d) has joined the Server (%s). (Alias: %s)", plname, playerid,playersip, pAKA);
		if (strlen(pIPs) < 3) { }
		else if (!strcmp(pIPs,playersip,true)) { }
		else
		{
			format(string2,sizeof(string2),"[INFO]: %s (%d)'s Other IPs: %s", plname, playerid, pIP);
			SendIP = 1;
		}
	}

	for(new i = 0; i < MAX_PLAYERS; i++)
	{
		if(IsPlayerConnected(i) && playerid != i)
		{
			if(PlayerInfo[i][pAdmin] > 1)
			{
				SendClientMessage(i,COLOR_GREEN,string);
				if(SendIP == 1)
				{
					SendClientMessage(i,COLOR_GREEN,string2);
					SendIP = 0;
				}
			}
			else
			{
				format(string,sizeof(string),"* %s (%d) has joined Raven's Roleplay", plname, playerid);
				SendClientMessage(i,COLOR_GREY,string);
			}
		}
	}


Ovako je u mom Ravens pa probaj ak uspije uspije jbg


Nedim_Gun

JBG Onda nemam rijesenje  :-\ Da znam rekao bi ti

Uredu hvala.Jel moze neko da mi pomogne ko se razume i oko ovoga :)

Vegas.

Dali si ti to kopirao iz nekog moda?

Nisam znacio skinuo sam Ravens's naj obicniji i to je to nista nisam dirao.

Moze neko da mi pomogne jel postoji neko ko moze ??