Problem with gamemode
#1

When i finish gamemode i try to convert but i can't here is the error
Код:
C:\Users\Vlada\Desktop\UGRPG.pwn(5300) : warning 217: loose indentation
C:\Users\Vlada\Desktop\UGRPG.pwn(5882) : warning 217: loose indentation
C:\Users\Vlada\Desktop\UGRPG.pwn(5889) : error 035: argument type mismatch (argument 1)
C:\Users\Vlada\Desktop\UGRPG.pwn(5889) : error 029: invalid expression, assumed zero
C:\Users\Vlada\Desktop\UGRPG.pwn(5889) : warning 215: expression has no effect
C:\Users\Vlada\Desktop\UGRPG.pwn(5891) : error 035: argument type mismatch (argument 1)
C:\Users\Vlada\Desktop\UGRPG.pwn(5891) : error 029: invalid expression, assumed zero
C:\Users\Vlada\Desktop\UGRPG.pwn(5891) : warning 215: expression has no effect
C:\Users\Vlada\Desktop\UGRPG.pwn(5893) : error 035: argument type mismatch (argument 1)
C:\Users\Vlada\Desktop\UGRPG.pwn(5893) : error 029: invalid expression, assumed zero
C:\Users\Vlada\Desktop\UGRPG.pwn(5893) : warning 215: expression has no effect
C:\Users\Vlada\Desktop\UGRPG.pwn(5895) : error 035: argument type mismatch (argument 1)
C:\Users\Vlada\Desktop\UGRPG.pwn(5895) : error 029: invalid expression, assumed zero
C:\Users\Vlada\Desktop\UGRPG.pwn(5895) : warning 215: expression has no effect
C:\Users\Vlada\Desktop\UGRPG.pwn(5902) : error 017: undefined symbol "d"
C:\Users\Vlada\Desktop\UGRPG.pwn(5916) : warning 225: unreachable code
C:\Users\Vlada\Desktop\UGRPG.pwn(5916) : warning 217: loose indentation
C:\Users\Vlada\Desktop\UGRPG.pwn(5919) : error 035: argument type mismatch (argument 3)
C:\Users\Vlada\Desktop\UGRPG.pwn(5922) : warning 217: loose indentation
C:\Users\Vlada\Desktop\UGRPG.pwn(5922) : error 035: argument type mismatch (argument 2)
C:\Users\Vlada\Desktop\UGRPG.pwn(5924) : error 035: argument type mismatch (argument 2)
C:\Users\Vlada\Desktop\UGRPG.pwn(5928) : error 035: argument type mismatch (argument 2)
C:\Users\Vlada\Desktop\UGRPG.pwn(5930) : error 017: undefined symbol "string"
C:\Users\Vlada\Desktop\UGRPG.pwn(5930) : error 017: undefined symbol "string"
C:\Users\Vlada\Desktop\UGRPG.pwn(5930) : error 029: invalid expression, assumed zero
C:\Users\Vlada\Desktop\UGRPG.pwn(5930) : fatal error 107: too many error messages on one line
and

Код:
    	{
    	    new msg2[128];
		    SendClientMessage(playerid, COLOR_NICERED,"=======================================YOU ARE BANNED======================================");
			SendClientMessage(playerid, COLOR_LIGHTRED,"Acest IP A fost banat pe server, Si nu a Fost Niciodata unbanat.");
			SendClientMessage(playerid, COLOR_LIGHTRED,"Daca doresti sa fi unbanat intra pe forumul nostru wwww.darktouchrp.tk!");
			SendClientMessage(playerid, COLOR_LIGHTRED,"Ban Evading will result in a Permanent Range Ban.");
			SendClientMessage(playerid, COLOR_NICERED,"=======================================BAN INFORMATION=====================================");
            format(msg2,sizeof(msg2),"Ime od naloga je banovan na ovaj IP %s"),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), A luat kick pentru posibil Ban Evading",plname,playerid);
		    SendAdminMessage(COLOR_LIGHTRED,msg2);

		    format(msg2,sizeof(msg2),"(%d/%d/%d) [%d:%d:%d] %s A luat kick de la Anti-Cheat pentru posibil 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 1;
	}

 {
	format(pFILE[playerid], 128, "ECRP/Users/Aliases/%s.txt", plname);
	dini_Create(pFILE[playerid]);
	dini_Set(pFILE[playerid], "Nameip", playersip);
 }

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

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

	if (strlen(pAKA) < 3)
	{
		format(string,sizeof(string),"[INFO]: %s (%d) je usao na Extreme-Crafting RP. (%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 Ostale IP adrese: -Too Many, Be Careful-", plname, playerid);
			}
			else
			{
				format(string2,sizeof(string2),"* %s (%d)'s Ostale IP adrese: %s", plname, playerid, pIPs);
			}
			SendIP = 1;
		}
	}
	else if (!strcmp(pAKA,plname,true))
	{
		format(string,sizeof(string),"[INFO]: %s (%d) je usao na Extreme-Crafting RP. (%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 Ostale IP adrese: -Too Many, Be Careful-", plname, playerid);
			}
			else
			{
				format(string2,sizeof(string2),"* %s (%d)'s Ostale IP adrese: %s", plname, playerid, pIPs);
			}
			SendIP = 1;
		}
	}
	else
	{
		format(string,sizeof(string),"[INFO]: %s (%d) je usao na 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 Ostale IP adrese: -Too Many, Be Careful-", plname, playerid);
			}
			else
			{
				format(string2,sizeof(string2),"* %s (%d)'s Ostale IP adrese: %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) je usao na Extreme-Crafting RP.", plname, playerid);
				SendClientMessage(i,COLOR_GREY,string);
			}*/
		}
	}

	format(string, sizeof(string), "ECRP/Users/%s.ini", plname);
	SendClientMessage(playerid, COLOR_YELLOW2, "Molimo vas sacekajte...");
	if(fexist(string))
	{
		gPlayerNalog[playerid] = 1;
	}
	else
	{
		gPlayerNalog[playerid] = 0;
	}
	//fclose(hFile);


		return 1;
	}
	return 1;
}
i try to fix it and when i did it in show 26 problems and when i check everythink is ok

PLESE HELP ME ;(
Reply


Messages In This Thread
Problem with gamemode - by Vladimir124 - 01.03.2015, 19:16
Re: Problem with gamemode - by Ritzy2K - 01.03.2015, 19:20
Re: Problem with gamemode - by Vladimir124 - 01.03.2015, 19:21
Re: Problem with gamemode - by ArchB42 - 01.03.2015, 20:11

Forum Jump:


Users browsing this thread: 1 Guest(s)