[POMOC] help

Započeo Blazey, Februar 21, 2014, 23:56:50 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: NL
Detaljan opis problema: Ma neko sranje nemam pjma
Dio skripte:
C:\Users\Ado\Desktop\NL by ALAN ( ERMIN NUHANOVIC)\gamemodes\NLRPGv3.pwn(14560) : error 010: invalid function or declaration
C:\Users\Ado\Desktop\NL by ALAN ( ERMIN NUHANOVIC)\gamemodes\NLRPGv3.pwn(14562) : error 010: invalid function or declaration
C:\Users\Ado\Desktop\NL by ALAN ( ERMIN NUHANOVIC)\gamemodes\NLRPGv3.pwn(14564) : error 010: invalid function or declaration
C:\Users\Ado\Desktop\NL by ALAN ( ERMIN NUHANOVIC)\gamemodes\NLRPGv3.pwn(14566) : error 010: invalid function or declaration
C:\Users\Ado\Desktop\NL by ALAN ( ERMIN NUHANOVIC)\gamemodes\NLRPGv3.pwn(14571) : error 010: invalid function or declaration
C:\Users\Ado\Desktop\NL by ALAN ( ERMIN NUHANOVIC)\gamemodes\NLRPGv3.pwn(14571 -- 14573) : error 010: invalid function or declaration
C:\Users\Ado\Desktop\NL by ALAN ( ERMIN NUHANOVIC)\gamemodes\NLRPGv3.pwn(14571 -- 14574) : error 010: invalid function or declaration
C:\Users\Ado\Desktop\NL by ALAN ( ERMIN NUHANOVIC)\gamemodes\NLRPGv3.pwn(14571 -- 14574) : fatal error 107: too many error messages on one line

if(strcmp(cmd, "/granica", true) == 0)
    {
                if(IsPlayerConnected(playerid))
        {
                        if(IsPlayerInRangeOfPoint(playerid, 4, 10.5540,-1518.5917,3.5763))
                        {
                                if(granica11 == 1) { SendClientMessage(playerid, COLOR_GREY, "** Granica je vec otvorena."); return 1; }
                                MoveDynamicObject(granica1, 4.6, -1521, 3.2, 1.0, 0, 0, 80);
                                SetTimer("granicatimer", 5000, 0);
                                GetPlayerName(playerid, sendername, sizeof(sendername));
                                format(string, sizeof(string), "* %s placa prelaz preko granice.", sendername);
                                SafeGivePlayerMoney(playerid, -50);
                                ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
                                granica11 = 1;
                                return 1;
                        }

                        else if(IsPlayerInRangeOfPoint(playerid, 4, 9.4716,-1527.8718,3.5328))
                        {
                                if(granica22 == 1) { SendClientMessage(playerid, COLOR_GREY, "** Granica je vec otvorena."); return 1; }
                                MoveDynamicObject(granica2, 15.69921875, -1525.69921875, 3.9000000953674, 1.0, 0, 333.99993896484, 79.991424560547);
                                SetTimer("granicatimer2", 5000, 0);
                                GetPlayerName(playerid, sendername, sizeof(sendername));
                                format(string, sizeof(string), "* %s placa prelaz preko granice.", sendername);
                                SafeGivePlayerMoney(playerid, -50);
                                ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
                                granica22 = 1;
                                return 1;
                        }
                }
                return 1;
        }

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


pa daj linije necu trazit po cijeloj cmd-
69

Citat: [UG]C++ poslato Februar 22, 2014, 11:44:43 PRE PODNE
pa daj linije necu trazit po cijeloj cmd-
Izvinjavam se evo :D
if(strcmp(cmd, "/granica", true) == 0)
14560
  if(IsPlayerConnected(playerid))
14562
if(IsPlayerInRangeOfPoint(playerid, 4, 10.5540,-1518.5917,3.5763))
14564
if(granica11 == 1) { SendClientMessage(playerid, COLOR_GREY, "** Granica je vec otvorena."); return 1; }
14566
  SafeGivePlayerMoney(playerid, -50);
14571
ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
                                granica11 = 1;
14571-14574

koristis skriptu koja je od nule radjena zcmdom i onda ubacis STRCMP i pitas se odakle errori..

tvoja skripta ne prepoznaje taj nacin komandi

Citat: Blaeks poslato Februar 22, 2014, 12:00:17 POSLE PODNE
koristis skriptu koja je od nule radjena zcmdom i onda ubacis STRCMP i pitas se odakle errori..

tvoja skripta ne prepoznaje taj nacin komandi
Kako cu to postaviti u CMD ? ako nije problem? i ja sam to skontao,ali sam pocetnik nezz :S

CMD:granica(playeridm params[])
    {
                if(IsPlayerConnected(playerid))
        {
                        if(IsPlayerInRangeOfPoint(playerid, 4, 10.5540,-1518.5917,3.5763))
                        {
                                if(granica11 == 1) { SendClientMessage(playerid, COLOR_GREY, "** Granica je vec otvorena."); return 1; }
                                MoveDynamicObject(granica1, 4.6, -1521, 3.2, 1.0, 0, 0, 80);
                                SetTimer("granicatimer", 5000, 0);
                                GetPlayerName(playerid, sendername, sizeof(sendername));
                                format(string, sizeof(string), "* %s placa prelaz preko granice.", sendername);
                                SafeGivePlayerMoney(playerid, -50);
                                ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
                                granica11 = 1;
                                return 1;
                        }

                        else if(IsPlayerInRangeOfPoint(playerid, 4, 9.4716,-1527.8718,3.5328))
                        {
                                if(granica22 == 1) { SendClientMessage(playerid, COLOR_GREY, "** Granica je vec otvorena."); return 1; }
                                MoveDynamicObject(granica2, 15.69921875, -1525.69921875, 3.9000000953674, 1.0, 0, 333.99993896484, 79.991424560547);
                                SetTimer("granicatimer2", 5000, 0);
                                GetPlayerName(playerid, sendername, sizeof(sendername));
                                format(string, sizeof(string), "* %s placa prelaz preko granice.", sendername);
                                SafeGivePlayerMoney(playerid, -50);
                                ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
                                granica22 = 1;
                                return 1;
                        }
                }
                return 1;
        }

Citat: Blaeks poslato Februar 22, 2014, 12:02:42 POSLE PODNE
CMD:granica(playeridm params[])
    {
                if(IsPlayerConnected(playerid))
        {
                        if(IsPlayerInRangeOfPoint(playerid, 4, 10.5540,-1518.5917,3.5763))
                        {
                                if(granica11 == 1) { SendClientMessage(playerid, COLOR_GREY, "** Granica je vec otvorena."); return 1; }
                                MoveDynamicObject(granica1, 4.6, -1521, 3.2, 1.0, 0, 0, 80);
                                SetTimer("granicatimer", 5000, 0);
                                GetPlayerName(playerid, sendername, sizeof(sendername));
                                format(string, sizeof(string), "* %s placa prelaz preko granice.", sendername);
                                SafeGivePlayerMoney(playerid, -50);
                                ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
                                granica11 = 1;
                                return 1;
                        }

                        else if(IsPlayerInRangeOfPoint(playerid, 4, 9.4716,-1527.8718,3.5328))
                        {
                                if(granica22 == 1) { SendClientMessage(playerid, COLOR_GREY, "** Granica je vec otvorena."); return 1; }
                                MoveDynamicObject(granica2, 15.69921875, -1525.69921875, 3.9000000953674, 1.0, 0, 333.99993896484, 79.991424560547);
                                SetTimer("granicatimer2", 5000, 0);
                                GetPlayerName(playerid, sendername, sizeof(sendername));
                                format(string, sizeof(string), "* %s placa prelaz preko granice.", sendername);
                                SafeGivePlayerMoney(playerid, -50);
                                ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
                                granica22 = 1;
                                return 1;
                        }
                }
                return 1;
        }

C:\Users\Ado\Desktop\NL by ALAN ( ERMIN NUHANOVIC)\gamemodes\NLRPGv3.pwn(82502) : error 001: expected token: ")", but found "-identifier-"
C:\Users\Ado\Desktop\NL by ALAN ( ERMIN NUHANOVIC)\gamemodes\NLRPGv3.pwn(82502) : error 001: expected token: ";", but found "-identifier-"
C:\Users\Ado\Desktop\NL by ALAN ( ERMIN NUHANOVIC)\gamemodes\NLRPGv3.pwn(82504) : error 010: invalid function or declaration
C:\Users\Ado\Desktop\NL by ALAN ( ERMIN NUHANOVIC)\gamemodes\NLRPGv3.pwn(82506) : error 010: invalid function or declaration
C:\Users\Ado\Desktop\NL by ALAN ( ERMIN NUHANOVIC)\gamemodes\NLRPGv3.pwn(82508) : error 010: invalid function or declaration
C:\Users\Ado\Desktop\NL by ALAN ( ERMIN NUHANOVIC)\gamemodes\NLRPGv3.pwn(82509) : error 010: invalid function or declaration
C:\Users\Ado\Desktop\NL by ALAN ( ERMIN NUHANOVIC)\gamemodes\NLRPGv3.pwn(82514) : error 010: invalid function or declaration
C:\Users\Ado\Desktop\NL by ALAN ( ERMIN NUHANOVIC)\gamemodes\NLRPGv3.pwn(82514 -- 82515) : error 021: symbol already defined: "ProxDetector"
C:\Users\Ado\Desktop\NL by ALAN ( ERMIN NUHANOVIC)\gamemodes\NLRPGv3.pwn(82514 -- 82517) : error 010: invalid function or declaration
C:\Users\Ado\Desktop\NL by ALAN ( ERMIN NUHANOVIC)\gamemodes\NLRPGv3.pwn(82514 -- 82517) : fatal error 107: too many error messages on one line

Eto još više erora ..

prvo, kada si iskopirao komandu nisi uopste ni iskopirao sve varijable potrebne za njeno pokretanje, prvo to uradi pa onda javi da li ima errora

Kopirao sam bolan sve opet isto
C:\Users\Ado\Desktop\NL by ALAN ( ERMIN NUHANOVIC)\gamemodes\NLRPGv3.pwn(47034) : warning 204: symbol is assigned a value that is never used: "pass"
C:\Users\Ado\Desktop\NL by ALAN ( ERMIN NUHANOVIC)\gamemodes\NLRPGv3.pwn(82502) : error 001: expected token: ")", but found "-identifier-"
C:\Users\Ado\Desktop\NL by ALAN ( ERMIN NUHANOVIC)\gamemodes\NLRPGv3.pwn(82502) : error 001: expected token: ";", but found "-identifier-"
C:\Users\Ado\Desktop\NL by ALAN ( ERMIN NUHANOVIC)\gamemodes\NLRPGv3.pwn(82504) : error 010: invalid function or declaration
C:\Users\Ado\Desktop\NL by ALAN ( ERMIN NUHANOVIC)\gamemodes\NLRPGv3.pwn(82506) : error 010: invalid function or declaration
C:\Users\Ado\Desktop\NL by ALAN ( ERMIN NUHANOVIC)\gamemodes\NLRPGv3.pwn(82508) : error 010: invalid function or declaration
C:\Users\Ado\Desktop\NL by ALAN ( ERMIN NUHANOVIC)\gamemodes\NLRPGv3.pwn(82513) : error 010: invalid function or declaration
C:\Users\Ado\Desktop\NL by ALAN ( ERMIN NUHANOVIC)\gamemodes\NLRPGv3.pwn(82513 -- 82514) : error 021: symbol already defined: "ProxDetector"
C:\Users\Ado\Desktop\NL by ALAN ( ERMIN NUHANOVIC)\gamemodes\NLRPGv3.pwn(82513 -- 82516) : error 010: invalid function or declaration
C:\Users\Ado\Desktop\NL by ALAN ( ERMIN NUHANOVIC)\gamemodes\NLRPGv3.pwn(82513 -- 82516) : fatal error 107: too many error messages on one line

komandu si nadam se stavio na kraj skripte ?

Citat: Blaeks poslato Februar 22, 2014, 12:47:10 POSLE PODNE
komandu si nadam se stavio na kraj skripte ?
Ma jesam gdje je trebam staviti cc?


CMD:granica(playerid, params[])
{
	new hIme[MAX_PLAYER_NAME];
	RPIme(playerid, hIme);
	if(PI[playerid][Novac] < 55) return SCM(playerid, GRAD2, "{56A5D6}|INFO| {C0C0C0} Nemate dovoljno Novca da Platite Prolaz na Granici (55$)");
	if(IsPlayerInRangeOfPoint(playerid, 10.0, 1723.9000200,519.2000100,27.1000000)) // STAVI TI KOORDINATE KOD GRANICE
    {
	    MoveDynamicObject(granica1,   SVOJU STAVIS KOORDINATU  , 3.0);
        SCM(playerid, BELA, "| {2685EB}Granica (LV) {FFFFFF}| Kapija ce se zatvoriti za {2685EB}5 {FFFFFF}sekundi.");
        NovacMinus(playerid, 55);
        SetTimerEx("GranicaTimer", 7000, false, "d", playerid);
    }
    else if(IsPlayerInRangeOfPoint(playerid, 10.0, 1732.0000000,516.2000100,27.1000000)) // I OVDE STAVI
    {
	    MoveDynamicObject(granica2,   ovde stavis SVOJE   , 3.0); // 
        SCM(playerid, BELA, "| {2685EB}Granica{FFFFFF}| Kapija ce se zatvoriti za {2685EB}5 {FFFFFF}sekundi.");
        NovacMinus(playerid, 55);
        SetTimerEx("GranicaTimer2", 7000, false, "d", playerid);
   }
    else return SCM(playerid, GRAD2, "{56A5D6}|INFO| {C0C0C0} Niste blizu Granice!");
	return 1;
}



I nemoj ti editirat NL mod uzmi si neki obični.