[Pomoc] Errori


Započeo Black22, Januar 31, 2014, 09:44:37 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: UP
Detaljan opis problema: Radim war sistem i sad imam 26 errora a neznam kako da ih riješim
Dio skripte:
CMD:pokreniwar(playerid, params[])
{
	if(PlayerInfo[playerid][pAdmin] >= 1 || IsPlayerAdmin(playerid))
 	{
 	    new trajanje;
		if(sscanf(params, "iiii", WarTim1, WarTim2, WarMapa, trajanje))
		{
			SCM(playerid, GRAD3, "Koristite: {BFC0C2}/pokreniwar [ID tima 1] [ID tima 2] [Mapa] [Trajanje (minuti)]");
			SCM(playerid, GRAD3, "Dostupne mape: {BFC0C2}1 - Farma1, 2 - Brod1, 3 - Brod2, 4 - Bull selo");
			SCM(playerid, GRAD3, "Dostupne mape: {BFC0C2}5 - Urban, 6 - Skladiste, 7 - Desert, 8 - Tvornica");
			SCM(playerid, GRAD3, "Dostupne mape: {BFC0C2}9 - Farma2, 10 - Ruins");
			return 1;
		}
		if(WarAktivan == true) return SCM(playerid, GRAD2, "  Jedan war je vec aktivan!");
		if(WarMapa < 1 || WarMapa > 10) return SCM(playerid, GRAD2, "Nepoznat broj mape!");
		if(trajanje > 60) return SCM(playerid, GRAD2, "Maksimalno trajanje wara je 60 minuta!");
		Tim1Skor = 0;
		Tim2Skor = 0;
		new ime[MAX_PLAYER_NAME];
  		if(WarTim1 == 1) timtext1 = "~R~LSPD";
	    else if(WarTim1 == 2) timtext1 = "~R~LCN";
	    else if(WarTim1 == 3) timtext1 = "~R~Yakuza";
	    else if(WarTim1 == 4) timtext1 = "~R~GSF";
	    else if(WarTim1 == 5) timtext1 = "~R~Ballas";
	    else if(WarTim1 == 6) timtext1 = "~R~Novinari";
	   	else if(WarTim1 == 7) timtext1 = "~R~FBI";
	    else if(WarTim1 == 8) timtext1 = "~R~Parking Servis";
	    else if(WarTim1 == 9) timtext1 = "~R~Ruska Mafia";
	    else if(WarTim1 == 10) timtext1 = "~R~SAS";
	    else if(WarTim1 == 11) timtext1 = "~R~LS Bajkeri";
  		if(WarTim1 == 1) timtext11 = "LSPD";
	    else if(WarTim1 == 2) timtext11 = "LCN";
	    else if(WarTim1 == 3) timtext11 = "Yakuza";
	    else if(WarTim1 == 4) timtext11 = "GSF";
	    else if(WarTim1 == 5) timtext11 = "Ballas";
	    else if(WarTim1 == 6) timtext11 = "Novinari";
	   	else if(WarTim1 == 7) timtext11 = "FBI";
	    else if(WarTim1 == 8) timtext11 = "Parking Servis";
	    else if(WarTim1 == 9) timtext11 = "Ruska Mafia";
	    else if(WarTim1 == 10) timtext11 = "SAS";
	    else if(WarTim1 == 11) timtext11 = "LS Bajkeri";

		if(WarTim2 == 1) timtext2 = "~R~LSPD";
	    else if(WarTim2 == 2) timtext2 = "~B~LCN";
	    else if(WarTim2 == 3) timtext2 = "~B~Yakuza";
	    else if(WarTim2 == 4) timtext2 = "~B~GSF";
	    else if(WarTim2 == 5) timtext2 = "~B~Ballas";
	    else if(WarTim2 == 6) timtext2 = "~B~Novinari";
	   	else if(WarTim2 == 7) timtext2 = "~B~FBI";
	    else if(WarTim2 == 8) timtext2 = "~B~Parking Servis";
	    else if(WarTim2 == 9) timtext2 = "~B~Ruska Mafia";
	    else if(WarTim2 == 10) timtext2 = "~B~SAS";
	    else if(WarTim2 == 11) timtext2 = "~B~LS Bajkeri";
  		if(WarTim2 == 1) timtext22 = "LSPD";
	    else if(WarTim2 == 2) timtext22 = "LCN";
	    else if(WarTim2 == 3) timtext22 = "Yakuza";
	    else if(WarTim2 == 4) timtext22 = "GSF";
	    else if(WarTim2 == 5) timtext22 = "Ballas";
	    else if(WarTim2 == 6) timtext22 = "Novinari";
	   	else if(WarTim2 == 7) timtext22 = "FBI";
	    else if(WarTim2 == 8) timtext22 = "Parking Servis";
	    else if(WarTim2 == 9) timtext22 = "Ruska Mafia";
	    else if(WarTim2 == 10) timtext22 = "SAS";
	    else if(WarTim2 == 11) timtext22 = "LS Bajkeri";
		TextDrawSetString(WarTD2, timtext1);
		TextDrawSetString(WarTD3, timtext2);
		TextDrawSetString(WarTD4, "0");
		TextDrawSetString(WarTD5, "0");
		new imemape[16];
		if(WarMapa == 1) imemape = "Farma1";
		else if(WarMapa == 2) imemape = "Brod 1";
		else if(WarMapa == 3) imemape = "Brod 2";
		else if(WarMapa == 4) imemape = "Bull selo";
		else if(WarMapa == 5) imemape = "Urban";
		else if(WarMapa == 6) imemape = "Skladiste";
		else if(WarMapa == 7) imemape = "Desert";
		else if(WarMapa == 8) imemape = "Tvornica";
		else if(WarMapa == 9) imemape = "Farma2";
		else if(WarMapa == 10) imemape = "Ruins";
		else imemape = "N/A";
		ClanovaUWaru[WarTim1] = 0;
		ClanovaUWaru[WarTim2] = 0;
		foreach(Player, i)
		{
   			if(PlayerInfo[i][pClan] == WarTim1 || PlayerInfo[i][pLider] == WarTim1)
		    {
      			new str[64];
		    	format(str, sizeof str, "~R~]War poceo]~N~~R~Vas tim protiv tima %d", WarTim2);
			    GameTextForPlayer(i, str, 5000, 5);
			    new str1[128];
			    format(str1, sizeof(str1), "War pokrenut od admina %s | Tim 1: %s | Tim 2: %s | Mapa: %s | Trajanje: %d min.", ime, timtext11, timtext22, imemape, trajanje);
			    SCM(i, ZUTA, str1);
			  	/*TextDrawShowForPlayer(i, WarTD0);
		        TextDrawShowForPlayer(i, WarTD1);
		        TextDrawShowForPlayer(i, WarTD2);
		        TextDrawShowForPlayer(i, WarTD3);
		        TextDrawShowForPlayer(i, WarTD4);
		        TextDrawShowForPlayer(i, WarTD5);
		        IgracUWaru[i] = 1;*/
			}
			if(PlayerInfo[i][pClan] == WarTim2 || PlayerInfo[i][pLider] == WarTim2)
		    {
		        new str[64];
		        format(str, sizeof str, "~R~]War poceo]~N~~R~Vas tim protiv tima %d", WarTim1);
		       	GameTextForPlayer(i, str, 5000, 5);
		        new str1[128];
		        format(str1, sizeof(str1), "War pokrenut od admina %s | Tim 1: %s | Tim 2: %s | Mapa: %s | Trajanje: %d min.", ime, timtext11, timtext22, imemape, trajanje);
		        SCM(i, ZUTA, str1);
		        /*TextDrawShowForPlayer(i, WarTD0);
		        TextDrawShowForPlayer(i, WarTD1);
		        TextDrawShowForPlayer(i, WarTD2);
		        TextDrawShowForPlayer(i, WarTD3);
		        TextDrawShowForPlayer(i, WarTD4);
		        TextDrawShowForPlayer(i, WarTD5);
		        IgracUWaru[i] = 1;*/
			}
		}
   		new str1[100];
      	format(str1, sizeof(str1), "Pokrenuli ste gang war | Tim 1: %s | Tim 2: %s | Mapa: %s | Trajanje: %d min.", timtext11, timtext22, imemape, trajanje);
       	SCM(playerid, ZUTA, str1);
       	format(str1, sizeof str1, "Admin %s je pokrenuo war | Tim 1: %s | Tim 2: %s | Mapa: %s | Trajanje: %d min.", ime, timtext11, timtext22, imemape, trajanje);
       	SendAdminMessage(ZUTA, str1);
        WarAktivan = true;
        wartajmer = SetTimer("ZaustaviWar", trajanje*60000, false);
        format(CmdString, 220, "POKRETANJE | Admin: %s | Tim 1: %s | Tim 2: %s | Mapa: %s | Trajanje: %d min | IP: %s", ime, timtext11, timtext22, imemape, trajanje, ip);
	}
	else return SCM(playerid, GRAD2, "(greska) Nemate autorizaciju za koristenje ove naredbe!");
	return 1;
}


errore mi baca na ove linije
else if(WarTim1 == 2) timtext1 = "~R~LCN";


D:\DAREK\Modovi\CrimeCity v1.2\gamemodes\SSRP.pwn(15722) : error 047: array sizes do not match, or destination array is too small
D:\DAREK\Modovi\CrimeCity v1.2\gamemodes\SSRP.pwn(15724) : error 047: array sizes do not match, or destination array is too small
D:\DAREK\Modovi\CrimeCity v1.2\gamemodes\SSRP.pwn(15725) : error 047: array sizes do not match, or destination array is too small
D:\DAREK\Modovi\CrimeCity v1.2\gamemodes\SSRP.pwn(15727) : error 047: array sizes do not match, or destination array is too small
D:\DAREK\Modovi\CrimeCity v1.2\gamemodes\SSRP.pwn(15730) : error 047: array sizes do not match, or destination array is too small
D:\DAREK\Modovi\CrimeCity v1.2\gamemodes\SSRP.pwn(15732) : error 047: array sizes do not match, or destination array is too small
D:\DAREK\Modovi\CrimeCity v1.2\gamemodes\SSRP.pwn(15733) : error 047: array sizes do not match, or destination array is too small
D:\DAREK\Modovi\CrimeCity v1.2\gamemodes\SSRP.pwn(15735) : error 047: array sizes do not match, or destination array is too small
D:\DAREK\Modovi\CrimeCity v1.2\gamemodes\SSRP.pwn(15736) : error 047: array sizes do not match, or destination array is too small
D:\DAREK\Modovi\CrimeCity v1.2\gamemodes\SSRP.pwn(15738) : error 047: array sizes do not match, or destination array is too small
D:\DAREK\Modovi\CrimeCity v1.2\gamemodes\SSRP.pwn(15745) : error 047: array sizes do not match, or destination array is too small
D:\DAREK\Modovi\CrimeCity v1.2\gamemodes\SSRP.pwn(15747) : error 047: array sizes do not match, or destination array is too small
D:\DAREK\Modovi\CrimeCity v1.2\gamemodes\SSRP.pwn(15748) : error 047: array sizes do not match, or destination array is too small
D:\DAREK\Modovi\CrimeCity v1.2\gamemodes\SSRP.pwn(15750) : error 047: array sizes do not match, or destination array is too small
D:\DAREK\Modovi\CrimeCity v1.2\gamemodes\SSRP.pwn(15753) : error 047: array sizes do not match, or destination array is too small
D:\DAREK\Modovi\CrimeCity v1.2\gamemodes\SSRP.pwn(15755) : error 047: array sizes do not match, or destination array is too small
D:\DAREK\Modovi\CrimeCity v1.2\gamemodes\SSRP.pwn(15756) : error 047: array sizes do not match, or destination array is too small
D:\DAREK\Modovi\CrimeCity v1.2\gamemodes\SSRP.pwn(15758) : error 047: array sizes do not match, or destination array is too small
D:\DAREK\Modovi\CrimeCity v1.2\gamemodes\SSRP.pwn(15759) : error 047: array sizes do not match, or destination array is too small
D:\DAREK\Modovi\CrimeCity v1.2\gamemodes\SSRP.pwn(15761) : error 047: array sizes do not match, or destination array is too small
D:\DAREK\Modovi\CrimeCity v1.2\gamemodes\SSRP.pwn(15789) : error 035: argument type mismatch (argument 2)

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


26 Errors.

Neke slike/video za lakse dobivanje pomoci(neobavezno):

Blaeks

*

Madmen