Run time Error 17:

Započeo Har1s, Jun 17, 2017, 21:21:36 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 4 gostiju pregledaju ovu temu.

Skripta koju koristim:BG za probu samo..
Detaljan opis problema:Pa dodavao sam nesto na modu komande neke i sta vec i kad hocu compile nece da kompiluje, a kad pokrenem server pojavi se :
Runtime error 17: Invalid/unsupported P-code file format... Failed to load... Ako moze neko da mi pomogne, ovako mi je bilo i kad sam probao sa SM modom jbm ga..

Nesto nisi lijepo uradio u skripti zato nece da se kompajla i nemas .amx file jer nije kompajlovo
Sta si zadnje radio u modu?

Ateleport cmd, dodao sa starog bgrp moda ...definisao.. Dodao dialog i sve.. Ali jebaj ga ,nece pa nece


#define DIALOG_ATELEPORT                217 

    if(dialogid == DIALOG_ATELEPORT)
	{
		if(!response) return 1;
		switch(listitem)
		{
			case 0:
			{
				SPD(playerid,DIALOG_OTELEPORT, DIALOG_STYLE_LIST, ""BELA"Teleport", "BGPD\nBlack Dragon Triads\nMesto za drogu\nThe Vinci Family\nGrove\nBallas\nNovinari", "Odaberi", "Izlaz");
			}
			case 1:
			{
				SPD(playerid,DIALOG_LSTELEPORT, DIALOG_STYLE_LIST, ""BELA"Teleport", "Burg\nBanka\nLS Centar\nSpawn\nBolnica\nPlaza\nAuto Skola", "Odaberi", "Izlaz");
			}
			case 2:
			{
				if(GetPlayerState(playerid) == 2)
				{
					new idv = GetPlayerVehicleID(playerid);
					SetVehiclePos(idv,-1399.1519,-321.2615,14.1484);
				}
				else
				{
					SetPlayerPos(playerid,-1399.1519,-321.2615,14.1484);
				}
				SetPlayerInterior(playerid, 0);
				SetPlayerVirtualWorld(playerid,0);
				SCM(playerid,-1,""SPLAVA"[BG:RPG] "BELA"Teleportovali ste se do San Fierra!");
			}
			case 3:
			{
				if(GetPlayerState(playerid) == 2)
				{
					new idv = GetPlayerVehicleID(playerid);
					SetVehiclePos(idv,1690.4329,1447.2113,10.7663);
				}
				else
				{
					SetPlayerPos(playerid,1690.4329,1447.2113,10.7663);
				}
				SetPlayerInterior(playerid, 0);
				SetPlayerVirtualWorld(playerid,0);
				SCM(playerid,-1,""SPLAVA"[BG:RPG] "BELA"Teleportovali ste se do Las Venturasa!");
			}
		}
	}
	///////////////////////////////////////////////////////////////////////////////
	if(dialogid == DIALOG_LSTELEPORT)
	{
		if(!response) return 1;
		switch(listitem)
		{
			case 0:
			{
				if(GetPlayerState(playerid) == 2)
				{
					new idv = GetPlayerVehicleID(playerid);
					SetVehiclePos(idv,1213.8459,-925.2637,42.9148);
				}
				else
				{
					SetPlayerPos(playerid,1213.8459,-925.2637,42.9148);
				}
				SetPlayerInterior(playerid, 0);
				SetPlayerVirtualWorld(playerid,0);
				SCM(playerid,-1,""SPLAVA"[BG:RPG] "BELA"Teleportovali ste se do burga!");
			}
			case 1:
			{
				if(GetPlayerState(playerid) == 2)
				{
					new idv = GetPlayerVehicleID(playerid);
					SetVehiclePos(idv,1461.4692,-1026.6687,23.8281);
				}
				else
				{
					SetPlayerPos(playerid,1461.4692,-1026.6687,23.8281);
				}
				SetPlayerInterior(playerid, 0);
				SetPlayerVirtualWorld(playerid,0);
				SCM(playerid,-1,""SPLAVA"[BG:RPG] "BELA"Teleportovali ste se do banke!");
			}
			case 2:
			{
				if(GetPlayerState(playerid) == 2)
				{
					new idv = GetPlayerVehicleID(playerid);
					SetVehiclePos(idv,1528.7382,-1673.2966,13.3828);
				}
				else
				{
					SetPlayerPos(playerid,1528.7382,-1673.2966,13.3828);
				}
				SetPlayerInterior(playerid, 0);
				SetPlayerVirtualWorld(playerid,0);
				SCM(playerid,-1,""SPLAVA"[BG:RPG] "BELA"Teleportovali ste se do Balkan Gaminga!");
			}
			case 3:
			{
				if(GetPlayerState(playerid) == 2)
				{
					new idv = GetPlayerVehicleID(playerid);
					SetVehiclePos(idv,814.9496,-1334.8177,13.5469);
				}
				else
				{
					SetPlayerPos(playerid,814.9496,-1334.8177,13.5469);
				}
				SetPlayerInterior(playerid, 0);
				SetPlayerVirtualWorld(playerid,0);
				SCM(playerid,-1,""SPLAVA"[BG:RPG] "BELA"Teleportovali ste se do spawna!");
			}
			case 4:
			{
				if(GetPlayerState(playerid) == 2)
				{
					new idv = GetPlayerVehicleID(playerid);
					SetVehiclePos(idv,1204.2029,-1329.0402,13.3984);
				}
				else
				{
					SetPlayerPos(playerid,1204.2029,-1329.0402,13.3984);
				}
				SetPlayerInterior(playerid, 0);
				SetPlayerVirtualWorld(playerid,0);
				SCM(playerid,-1,""SPLAVA"[BG:RPG] "BELA"Teleportovali ste se do spawna!");
			}
			case 5:
			{
				if(GetPlayerState(playerid) == 2)
				{
					new idv = GetPlayerVehicleID(playerid);
					SetVehiclePos(idv,438.8236,-1810.8392,5.5469);
				}
				else
				{
					SetPlayerPos(playerid,438.8236,-1810.8392,5.5469);
				}
				SetPlayerInterior(playerid, 0);
				SetPlayerVirtualWorld(playerid,0);
				SCM(playerid,-1,""SPLAVA"[BG:RPG] "BELA"Teleportovali ste se do plaze!");
			}
			case 6:
			{
				if(GetPlayerState(playerid) == 2)
				{
					new idv = GetPlayerVehicleID(playerid);
					SetVehiclePos(idv,1559.5591,-2281.8320,13.3828);
				}
				else
				{
					SetPlayerPos(playerid,1559.5591,-2281.8320,13.3828);
				}
				SetPlayerInterior(playerid, 0);
				SetPlayerVirtualWorld(playerid,0);
				SCM(playerid,-1,""SPLAVA"[BG:RPG] "BELA"Teleportovali ste se do auto skole!");
			}
		}
	}
	//////////////////////////////////////////////////////////////////////////////
	if(dialogid == DIALOG_OTELEPORT)
	{
		if(!response) return 1;
		switch(listitem)
		{
			case 0:
			{
				if(GetPlayerState(playerid) == 2)
				{
					new idv = GetPlayerVehicleID(playerid);
					SetVehiclePos(idv,1528.7382,-1673.2966,13.3828);
				}
				else
				{
					SetPlayerPos(playerid,1528.7382,-1673.2966,13.3828);
				}
				SetPlayerInterior(playerid, 0);
				SetPlayerVirtualWorld(playerid,0);
				SCM(playerid,-1,""SPLAVA"[BG:RPG] "BELA"Teleportovali ste se do BGPD!");
			}
			case 1:
			{
                if(GetPlayerState(playerid) == 2)
				{
					new idv = GetPlayerVehicleID(playerid);
					SetVehiclePos(idv,1262.8628,-736.4495,93.8375);
				}
				else
				{
					SetPlayerPos(playerid,1262.8628,-736.4495,93.8375);
				}
				SetPlayerInterior(playerid, 0);
				SetPlayerVirtualWorld(playerid,0);
				SCM(playerid,-1,""SPLAVA"[BG:RPG] "BELA"Teleportovali ste se do Black Dragon Triads!");
			}
			case 2:
			{
                if(GetPlayerState(playerid) == 2)
				{
					new idv = GetPlayerVehicleID(playerid);
					SetVehiclePos(idv,-1057.4580,-1661.8391,77.1505);
				}
				else
				{
					SetPlayerPos(playerid,-1057.4580,-1661.8391,77.1505);
				}
				SetPlayerInterior(playerid, 0);
				SetPlayerVirtualWorld(playerid,0);
				SCM(playerid,-1,""SPLAVA"[BG:RPG] "BELA"Teleportovali ste se do mesta za drogu (BDT)!");
			}
			case 3:
			{
                if(GetPlayerState(playerid) == 2)
				{
					new idv = GetPlayerVehicleID(playerid);
					SetVehiclePos(idv,2236.4727,-2186.4226,13.5469);
				}
				else
				{
					SetPlayerPos(playerid,2236.4727,-2186.4226,13.5469);
				}
				SetPlayerInterior(playerid, 0);
				SetPlayerVirtualWorld(playerid,0);
				SCM(playerid,-1,""SPLAVA"[BG:RPG] "BELA"Teleportovali ste se do The Vinci Family!");
			}
			case 4:
			{
                if(GetPlayerState(playerid) == 2)
				{
					new idv = GetPlayerVehicleID(playerid);
					SetVehiclePos(idv,2437.6843,-1652.9661,13.4803);
				}
				else
				{
					SetPlayerPos(playerid,2437.6843,-1652.9661,13.4803);
				}
				SetPlayerInterior(playerid, 0);
				SetPlayerVirtualWorld(playerid,0);
				SCM(playerid,-1,""SPLAVA"[BG:RPG] "BELA"Teleportovali ste se do Grove Street Family!");
			}
			case 5:
			{
                if(GetPlayerState(playerid) == 2)
				{
					new idv = GetPlayerVehicleID(playerid);
					SetVehiclePos(idv,1874.9053,-1084.8048,23.8281);
				}
				else
				{
					SetPlayerPos(playerid,1874.9053,-1084.8048,23.8281);
				}
				SetPlayerInterior(playerid, 0);
				SetPlayerVirtualWorld(playerid,0);
				SCM(playerid,-1,""SPLAVA"[BG:RPG] "BELA"Teleportovali ste se do Ballas!");
			}
			case 6:
			{
                if(GetPlayerState(playerid) == 2)
				{
					new idv = GetPlayerVehicleID(playerid);
					SetVehiclePos(idv,1721.1100,-1820.9573,13.5469);
				}
				else
				{
					SetPlayerPos(playerid,1721.1100,-1820.9573,13.5469);
				}
				SetPlayerInterior(playerid, 0);
				SetPlayerVirtualWorld(playerid,0);
				SCM(playerid,-1,""SPLAVA"[BG:RPG] "BELA"Teleportovali ste se do Novinara!");
			}
		}


YCMD:ateleport(playerid, params[], help)
{
    #pragma unused help
    if(UlogovanProvera[playerid] == 0) return SCM(playerid,-1,"BG:RPG | "CRVENA"Moras se ulogovati da bi koristio ovu komandu!");
	if(PlayerInfo[playerid][pAdmin] < 1 && PlayerInfo[playerid][pGM] < 1) return SCM(playerid,-1,""CRVENA"[BG:RPG] "SIVA"Samo Admini & GameMasteri!");
    if(AdminDuty[playerid] == 0 && GMDuty[playerid] == 0) return SCM(playerid,-1,""CRVENA"[BG:RPG] "SIVA"Morate biti na Admin & GameMaster duznosti!");
	SPD(playerid,DIALOG_ATELEPORT, DIALOG_STYLE_LIST, ""BELA"Teleport", "Organizacije\nBalkan Gaming Lokacije\nSan Fierro\nLas Venturas", "Odaberi", "Izlaz");
	return 1
}

MOZDA SAM ZGRESIO NESTO JER SE NE RAZUMEM BAS ,AL POROBAVAO ..


Poslednja Izmena: Jun 17, 2017, 23:40:21 POSLE PODNE od MEDO

Pa jel ti pokazuje errore neke? Jesi ove varijable prilagodio svom modu?

Samo stoji ovako http://imgur.com/a/B24lW 5-10 sekundi je kao da kompiluje onda prestane i moze se slobodno nema ono not responding ili bilo sta drugo, mis stoji kao da je spreman za kucanje i ta sranja piff...

Citat: Har1s poslato Jun 17, 2017, 21:36:03 POSLE PODNE
Samo stoji ovako http://imgur.com/a/B24lW 5-10 sekundi je kao da kompiluje onda prestane i moze se slobodno nema ono not responding ili bilo sta drugo, mis stoji kao da je spreman za kucanje i ta sranja piff...
Fali ti zagrada }


bilo je lijepo dok je trajalo.


Citat: Bašovski poslato Jun 17, 2017, 22:50:46 POSLE PODNE
Citat: Har1s poslato Jun 17, 2017, 21:36:03 POSLE PODNE
Samo stoji ovako http://imgur.com/a/B24lW 5-10 sekundi je kao da kompiluje onda prestane i moze se slobodno nema ono not responding ili bilo sta drugo, mis stoji kao da je spreman za kucanje i ta sranja piff...
Fali ti zagrada }

I mislim da nije ovo prilagodio svom modu


Fali ti bracket, na googleu nadji iPleomaxov Missing Bracket, unesi kod taj i vidi da li ti fali bracket


Ako si dodao onda prilagodi ovo sve svom modu,ako je PlayerInfo stavi PI i tako