[AJUDA] ERROS 26
#1

iae galera, cara rachei a cabeзa mais nгo tendi o que tem de errado, eu tirei varios erros
mais ainda sobraram alguns, queria ajuda

ERROS :
Код:
C:\Users\cabelo\Desktop\samp 0.3 server\gamemodes\BFW.pwn(3120) : warning 219: local variable "killer" shadows a variable at a preceding level
C:\Users\cabelo\Desktop\samp 0.3 server\gamemodes\BFW.pwn(3169) : warning 219: local variable "killer" shadows a variable at a preceding level
C:\Users\cabelo\Desktop\samp 0.3 server\gamemodes\BFW.pwn(3668) : error 017: undefined symbol "i"
C:\Users\cabelo\Desktop\samp 0.3 server\gamemodes\BFW.pwn(3668) : error 029: invalid expression, assumed zero
C:\Users\cabelo\Desktop\samp 0.3 server\gamemodes\BFW.pwn(3668) : warning 215: expression has no effect
C:\Users\cabelo\Desktop\samp 0.3 server\gamemodes\BFW.pwn(4105) : error 004: function "CrimInRange" is not implemented
C:\Users\cabelo\Desktop\samp 0.3 server\gamemodes\BFW.pwn(5077) : error 017: undefined symbol "ProxDetector"
C:\Users\cabelo\Desktop\samp 0.3 server\gamemodes\BFW.pwn(7075) : error 004: function "FixHour" is not implemented
C:\Users\cabelo\Desktop\samp 0.3 server\gamemodes\BFW.pwn(7106) : error 017: undefined symbol "SetDisabledWeapons"
C:\Users\cabelo\Desktop\samp 0.3 server\gamemodes\BFW.pwn(7468) : error 004: function "FixHour" is not implemented
C:\Users\cabelo\Desktop\samp 0.3 server\gamemodes\BFW.pwn(7515) : error 004: function "FixHour" is not implemented
C:\Users\cabelo\Desktop\samp 0.3 server\gamemodes\BFW.pwn(7603) : error 004: function "CrimInRange" is not implemented
C:\Users\cabelo\Desktop\samp 0.3 server\gamemodes\BFW.pwn(8725) : error 017: undefined symbol "ProxDetector"
C:\Users\cabelo\Desktop\samp 0.3 server\gamemodes\BFW.pwn(8742) : error 017: undefined symbol "ProxDetector"
C:\Users\cabelo\Desktop\samp 0.3 server\gamemodes\BFW.pwn(8758) : error 017: undefined symbol "ProxDetector"
C:\Users\cabelo\Desktop\samp 0.3 server\gamemodes\BFW.pwn(8806) : error 004: function "ProxDetectorS" is not implemented
C:\Users\cabelo\Desktop\samp 0.3 server\gamemodes\BFW.pwn(8829) : error 017: undefined symbol "ProxDetector"
C:\Users\cabelo\Desktop\samp 0.3 server\gamemodes\BFW.pwn(10292) : warning 225: unreachable code
C:\Users\cabelo\Desktop\samp 0.3 server\gamemodes\BFW.pwn(10423) : error 017: undefined symbol "ProxDetector"
C:\Users\cabelo\Desktop\samp 0.3 server\gamemodes\BFW.pwn(10458) : error 017: undefined symbol "ProxDetector"
C:\Users\cabelo\Desktop\samp 0.3 server\gamemodes\BFW.pwn(10492) : error 017: undefined symbol "ProxDetector"
C:\Users\cabelo\Desktop\samp 0.3 server\gamemodes\BFW.pwn(10526) : error 017: undefined symbol "ProxDetector"
C:\Users\cabelo\Desktop\samp 0.3 server\gamemodes\BFW.pwn(10561) : error 017: undefined symbol "ProxDetector"
C:\Users\cabelo\Desktop\samp 0.3 server\gamemodes\BFW.pwn(10601) : error 017: undefined symbol "ProxDetector"
C:\Users\cabelo\Desktop\samp 0.3 server\gamemodes\BFW.pwn(10606) : error 017: undefined symbol "ProxDetector"
C:\Users\cabelo\Desktop\samp 0.3 server\gamemodes\BFW.pwn(10611) : error 017: undefined symbol "ProxDetector"
C:\Users\cabelo\Desktop\samp 0.3 server\gamemodes\BFW.pwn(10616) : error 017: undefined symbol "ProxDetector"
C:\Users\cabelo\Desktop\samp 0.3 server\gamemodes\BFW.pwn(10873) : error 017: undefined symbol "ProxDetector"
C:\Users\cabelo\Desktop\samp 0.3 server\gamemodes\BFW.pwn(10884) : error 017: undefined symbol "ProxDetector"
C:\Users\cabelo\Desktop\samp 0.3 server\gamemodes\BFW.pwn(10949) : error 017: undefined symbol "ProxDetector"

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.
LINHA 3169:
Код:
					new killer[MAX_PLAYER_NAME];
LINHA 3120:
Код:
	    new killer[MAX_PLAYER_NAME];
LINHA 3668:
Код:
	  DisablePlayerCheckpoint(i, playerid));
LINHA 4105:
Код:
				  if(gTeam[i] == 2 && CrimInRange(30.0, playerid,i))
LINHA 5077:
Код:
						ProxDetector(30.0, Mobile[i], string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
LINHA 7075:
Код:
	FixHour(ghour);
LINHA 7106:
Код:
	SetDisabledWeapons(43,44,45);
LINHA 7468:
Код:
		FixHour(tmphour);
LINHA 7515:
Код:
	FixHour(tmphour);
LINHA 7603:
Код:
				  if(gTeam[k] == 2 && CrimInRange(80.0, i,k))
LINHA 8725:
Код:
	ProxDetector(4.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
LINHA 8806:
Код:
					if (ProxDetectorS(5.0, playerid, giveplayerid))
LINHA 8829:
Код:
							ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
LINHA 10292:
Код:
	if(strcmp(cmd, "/togooc", true) == 0)
LINHA 10423:
Код:
			ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
Nгo vou por as outras linhas porque sгo os mesmo erros, se vocкis me ajudarem com esse erro, vou saber como arrumar os outros. Brigado des de jб
Reply
#2

so vou ajudar em um pk depois alguns so vendo o script a funзгo do ke tem de fazer e assum...

pawn Код:
forward ProxDetector(Float:radi, playerid, StringCf[],col1,col2,col3,col4,col5);
forward ProxDetectorS(Float:radi, playerid, targetid);
pawn Код:
public ProxDetectorS(Float:radi, playerid, targetid)
{
    if(IsPlayerConnected(playerid)&&IsPlayerConnected(targetid))
    {
        new Float:posx, Float:posy, Float:posz;
        new Float:oldposx, Float:oldposy, Float:oldposz;
        new Float:tempposx, Float:tempposy, Float:tempposz;
        GetPlayerPos(playerid, oldposx, oldposy, oldposz);
        //radi = 2.0; //Trigger Radius
        GetPlayerPos(targetid, posx, posy, posz);
        tempposx = (oldposx -posx);
        tempposy = (oldposy -posy);
        tempposz = (oldposz -posz);
        //printf("DEBUG: X:%f Y:%f Z:%f",posx,posy,posz);
        if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
        {
            return 1;
        }
    }
    return 0;
}
pawn Код:
public PlayerToPoint(Float:radi, playerid, Float:xx, Float:yy, Float:zz)
{
    if(IsPlayerConnected(playerid))
    {
        new Float:oldposx, Float:oldposy, Float:oldposz;
        new Float:tempposx, Float:tempposy, Float:tempposz;
        GetPlayerPos(playerid, oldposx, oldposy, oldposz);
        tempposx = (oldposx -xx);
        tempposy = (oldposy -yy);
        tempposz = (oldposz -zz);
        if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
        {
            return 1;
        }
    }
    return 0;
}
Reply
#3

cara fiz o que vc falou, mais os erros tгo os mesmos
Reply
#4

ainda continua o do proxdetector??
Reply
#5

Mudou algumas coisas olhe:

ERROS :
Код:
C:\Users\cabelo\Desktop\RPG BROTHERS KILL.pwn(3122) : warning 219: local variable "killer" shadows a variable at a preceding level
C:\Users\cabelo\Desktop\RPG BROTHERS KILL.pwn(3171) : warning 219: local variable "killer" shadows a variable at a preceding level
C:\Users\cabelo\Desktop\RPG BROTHERS KILL.pwn(3670) : error 017: undefined symbol "i"
C:\Users\cabelo\Desktop\RPG BROTHERS KILL.pwn(3670) : error 029: invalid expression, assumed zero
C:\Users\cabelo\Desktop\RPG BROTHERS KILL.pwn(3670) : warning 215: expression has no effect
C:\Users\cabelo\Desktop\RPG BROTHERS KILL.pwn(4028) : error 025: function heading differs from prototype
C:\Users\cabelo\Desktop\RPG BROTHERS KILL.pwn(4148) : error 004: function "CrimInRange" is not implemented
C:\Users\cabelo\Desktop\RPG BROTHERS KILL.pwn(5120) : error 004: function "ProxDetector" is not implemented
C:\Users\cabelo\Desktop\RPG BROTHERS KILL.pwn(7118) : error 004: function "FixHour" is not implemented
C:\Users\cabelo\Desktop\RPG BROTHERS KILL.pwn(7149) : error 017: undefined symbol "SetDisabledWeapons"
C:\Users\cabelo\Desktop\RPG BROTHERS KILL.pwn(7511) : error 004: function "FixHour" is not implemented
C:\Users\cabelo\Desktop\RPG BROTHERS KILL.pwn(7558) : error 004: function "FixHour" is not implemented
C:\Users\cabelo\Desktop\RPG BROTHERS KILL.pwn(7646) : error 004: function "CrimInRange" is not implemented
C:\Users\cabelo\Desktop\RPG BROTHERS KILL.pwn(8728) : error 021: symbol already defined: "PlayerToPoint"
C:\Users\cabelo\Desktop\RPG BROTHERS KILL.pwn(8768) : error 004: function "ProxDetector" is not implemented
C:\Users\cabelo\Desktop\RPG BROTHERS KILL.pwn(8785) : error 004: function "ProxDetector" is not implemented
C:\Users\cabelo\Desktop\RPG BROTHERS KILL.pwn(8801) : error 004: function "ProxDetector" is not implemented
C:\Users\cabelo\Desktop\RPG BROTHERS KILL.pwn(8872) : error 004: function "ProxDetector" is not implemented
C:\Users\cabelo\Desktop\RPG BROTHERS KILL.pwn(10335) : warning 225: unreachable code
C:\Users\cabelo\Desktop\RPG BROTHERS KILL.pwn(10466) : error 004: function "ProxDetector" is not implemented
C:\Users\cabelo\Desktop\RPG BROTHERS KILL.pwn(10501) : error 004: function "ProxDetector" is not implemented
C:\Users\cabelo\Desktop\RPG BROTHERS KILL.pwn(10535) : error 004: function "ProxDetector" is not implemented
C:\Users\cabelo\Desktop\RPG BROTHERS KILL.pwn(10569) : error 004: function "ProxDetector" is not implemented
C:\Users\cabelo\Desktop\RPG BROTHERS KILL.pwn(10604) : error 004: function "ProxDetector" is not implemented
C:\Users\cabelo\Desktop\RPG BROTHERS KILL.pwn(10644) : error 004: function "ProxDetector" is not implemented
C:\Users\cabelo\Desktop\RPG BROTHERS KILL.pwn(10649) : error 004: function "ProxDetector" is not implemented
C:\Users\cabelo\Desktop\RPG BROTHERS KILL.pwn(10654) : error 004: function "ProxDetector" is not implemented
C:\Users\cabelo\Desktop\RPG BROTHERS KILL.pwn(10659) : error 004: function "ProxDetector" is not implemented
C:\Users\cabelo\Desktop\RPG BROTHERS KILL.pwn(10916) : error 004: function "ProxDetector" is not implemented
C:\Users\cabelo\Desktop\RPG BROTHERS KILL.pwn(10927) : error 004: function "ProxDetector" is not implemented

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.
LINHA 10466:
Код:
			ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
e a mesma coisa nos outros, so que agora mudou de linha, aquelas foram resolvidas, mais essas apareceram ;s
Reply
#6

isso й pk vc nao soube meter como deve ser...
Reply
#7

ae, eu to tirando os codigos proxdetector e ta sumindo os erros
Reply
#8

pronto os erros do proxdetector ja tб resolvido agora esses aqui apareceram ;s

ERROS :
Код:
C:\Users\cabelo\Desktop\RPG BROTHERS KILL.pwn(3122) : warning 219: local variable "killer" shadows a variable at a preceding level
C:\Users\cabelo\Desktop\RPG BROTHERS KILL.pwn(3171) : warning 219: local variable "killer" shadows a variable at a preceding level
C:\Users\cabelo\Desktop\RPG BROTHERS KILL.pwn(3670) : error 017: undefined symbol "i"
C:\Users\cabelo\Desktop\RPG BROTHERS KILL.pwn(3670) : error 029: invalid expression, assumed zero
C:\Users\cabelo\Desktop\RPG BROTHERS KILL.pwn(3670) : warning 215: expression has no effect
C:\Users\cabelo\Desktop\RPG BROTHERS KILL.pwn(4028) : error 025: function heading differs from prototype
C:\Users\cabelo\Desktop\RPG BROTHERS KILL.pwn(4148) : error 004: function "CrimInRange" is not implemented
C:\Users\cabelo\Desktop\RPG BROTHERS KILL.pwn(5120) : error 004: function "ProxDetector" is not implemented
C:\Users\cabelo\Desktop\RPG BROTHERS KILL.pwn(7118) : error 004: function "FixHour" is not implemented
C:\Users\cabelo\Desktop\RPG BROTHERS KILL.pwn(7149) : error 017: undefined symbol "SetDisabledWeapons"
C:\Users\cabelo\Desktop\RPG BROTHERS KILL.pwn(7511) : error 004: function "FixHour" is not implemented
C:\Users\cabelo\Desktop\RPG BROTHERS KILL.pwn(7558) : error 004: function "FixHour" is not implemented
C:\Users\cabelo\Desktop\RPG BROTHERS KILL.pwn(7646) : error 004: function "CrimInRange" is not implemented
C:\Users\cabelo\Desktop\RPG BROTHERS KILL.pwn(8728) : error 021: symbol already defined: "PlayerToPoint"
C:\Users\cabelo\Desktop\RPG BROTHERS KILL.pwn(10331) : warning 225: unreachable code
C:\Users\cabelo\Desktop\RPG BROTHERS KILL.pwn(13361) : error 029: invalid expression, assumed zero
C:\Users\cabelo\Desktop\RPG BROTHERS KILL.pwn(13361) : warning 215: expression has no effect
C:\Users\cabelo\Desktop\RPG BROTHERS KILL.pwn(13433) : error 004: function "FixHour" is not implemented
C:\Users\cabelo\Desktop\RPG BROTHERS KILL.pwn(15148) : error 004: function "SetCamBack" is not implemented
C:\Users\cabelo\Desktop\RPG BROTHERS KILL.pwn(26164) : error 029: invalid expression, assumed zero
C:\Users\cabelo\Desktop\RPG BROTHERS KILL.pwn(26164) : error 004: function "HouseLevel" is not implemented
C:\Users\cabelo\Desktop\RPG BROTHERS KILL.pwn(26182) : warning 225: unreachable code
C:\Users\cabelo\Desktop\RPG BROTHERS KILL.pwn(26182) : error 029: invalid expression, assumed zero
C:\Users\cabelo\Desktop\RPG BROTHERS KILL.pwn(26182) : error 004: function "CHouseLevel" is not implemented
C:\Users\cabelo\Desktop\RPG BROTHERS KILL.pwn(26184) : error 017: undefined symbol "houseid"
C:\Users\cabelo\Desktop\RPG BROTHERS KILL.pwn(26185) : error 017: undefined symbol "houseid"
C:\Users\cabelo\Desktop\RPG BROTHERS KILL.pwn(26186) : error 017: undefined symbol "houseid"
C:\Users\cabelo\Desktop\RPG BROTHERS KILL.pwn(26187) : error 017: undefined symbol "houseid"
C:\Users\cabelo\Desktop\RPG BROTHERS KILL.pwn(26188) : error 017: undefined symbol "houseid"
C:\Users\cabelo\Desktop\RPG BROTHERS KILL.pwn(26189) : error 017: undefined symbol "houseid"
C:\Users\cabelo\Desktop\RPG BROTHERS KILL.pwn(26190) : error 017: undefined symbol "houseid"
C:\Users\cabelo\Desktop\RPG BROTHERS KILL.pwn(26191) : error 017: undefined symbol "houseid"

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.
LINHA:
Код:
	if(houseid <= 4) { return 3; }
	if(houseid >= 29 && houseid <= 30) { return 4; }
	if(houseid >= 5 && houseid <= 9) { return 5; }
	if(houseid >= 10 && houseid <= 18 || houseid == 28) { return 7; }
	if(houseid >= 19 && houseid <= 22) { return 8; }
	if(houseid >= 23 && houseid <= 25) { return 9; }
	if(houseid == 26) { return 10; }
	if(houseid == 27) { return 11; }
LINHA 26182:
Код:
public CHouseLevel(houseid)
LINHA 26164:
Код:
public HouseLevel(playerid)
LINHA 15148:
Код:
			SetCamBack(playerid);
Reply
#9

eu to achando que tб faltando alguma chave aн, por isso o tanto de erros. Dк uma verificada no teu script e veja se vocк fechou todas as chaves.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)