[Ajuda] Erro Compilar
#1

Alguem poderia me dar uma ajudinha aki sou novato estou aprendendo alguma coisa pwn '-'
Код HTML:
else if(pDados[playerid][Organizacao] == 1)
    {
           	if(!IsPlayerInRangeOfPoint(playerid, 3.0,1147.6999511719,-1184.1999511719,32))
 			return SendClientMessage(playerid, 0xAD0000AA, "Vocк nгo estб no local para se equipar");
    		new Armas_Comando Vermelho = 40*pDados[playerid][Cargo]; //Cargo Almenta 40 Baalas Amis
    		GivePlayerWeapon(playerid, 24, Armas_Comando Vermelho);
    		GivePlayerWeapon(playerid, 25, Armas_Comando Vermelho);
    		GivePlayerWeapon(playerid, 29, Armas_Comando Vermelho);
    		GivePlayerWeapon(playerid, 31, Armas_Comando Vermelho);
    }
Dando Erro
Код HTML:
C:\Downloads\samp\gamemodes\fac.pwn(297) : error 001: expected token: ";", but found "-identifier-"
C:\Downloads\samp\gamemodes\fac.pwn(297) : error 017: undefined symbol "Vermelho"
C:\Downloads\samp\gamemodes\fac.pwn(297) : warning 215: expression has no effect
C:\Downloads\samp\gamemodes\fac.pwn(298) : error 001: expected token: ",", but found "-identifier-"
C:\Downloads\samp\gamemodes\fac.pwn(298) : error 017: undefined symbol "Vermelho"
C:\Downloads\samp\gamemodes\fac.pwn(298) : error 029: invalid expression, assumed zero
C:\Downloads\samp\gamemodes\fac.pwn(298) : fatal error 107: too many error messages on one line
Reply
#2

Quote:
Originally Posted by Kirikage
Посмотреть сообщение
Alguem poderia me dar uma ajudinha aki sou novato estou aprendendo alguma coisa pwn '-'
Код HTML:
else if(pDados[playerid][Organizacao] == 1)
    {
           	if(!IsPlayerInRangeOfPoint(playerid, 3.0,1147.6999511719,-1184.1999511719,32))
 			return SendClientMessage(playerid, 0xAD0000AA, "Vocк nгo estб no local para se equipar");
    		new Armas_Comando Vermelho = 40*pDados[playerid][Cargo]; //Cargo Almenta 40 Baalas Amis
    		GivePlayerWeapon(playerid, 24, Armas_Comando Vermelho);
    		GivePlayerWeapon(playerid, 25, Armas_Comando Vermelho);
    		GivePlayerWeapon(playerid, 29, Armas_Comando Vermelho);
    		GivePlayerWeapon(playerid, 31, Armas_Comando Vermelho);
    }
Dando Erro
Код HTML:
C:\Downloads\samp\gamemodes\fac.pwn(297) : error 001: expected token: ";", but found "-identifier-"
C:\Downloads\samp\gamemodes\fac.pwn(297) : error 017: undefined symbol "Vermelho"
C:\Downloads\samp\gamemodes\fac.pwn(297) : warning 215: expression has no effect
C:\Downloads\samp\gamemodes\fac.pwn(298) : error 001: expected token: ",", but found "-identifier-"
C:\Downloads\samp\gamemodes\fac.pwn(298) : error 017: undefined symbol "Vermelho"
C:\Downloads\samp\gamemodes\fac.pwn(298) : error 029: invalid expression, assumed zero
C:\Downloads\samp\gamemodes\fac.pwn(298) : fatal error 107: too many error messages on one line
nгo intendii seu cуdigo mas tenta assim
Код HTML:
else if(pDados[playerid][Organizacao] == 1)
    {
           	if(!IsPlayerInRangeOfPoint(playerid, 3.0,1147.6999511719,-1184.1999511719,32))
 			return SendClientMessage(playerid, 0xAD0000AA, "Vocк nгo estб no local para se equipar");
    		new Armas_Comando_Vermelho = 40*pDados[playerid][Cargo]; //Cargo Almenta 40 Baalas Amis
    		GivePlayerWeapon(playerid, 24, Armas_Comando_Vermelho);
    		GivePlayerWeapon(playerid, 25, Armas_Comando_Vermelho);
    		GivePlayerWeapon(playerid, 29, Armas_Comando_Vermelho);
    		GivePlayerWeapon(playerid, 31, Armas_Comando_Vermelho);
    }
apenas coloquei " _ " em Armas_Comando Vermelho
Armas_Comando_Vermelho
Reply
#3

Deu sim manow agora so fico
warning 217: loose indentation

Ja arrumei questao de um simples tab '-'
Reply
#4

pawn Код:
else if(pDados[playerid][Organizacao] == 1)
    {
            if(!IsPlayerInRangeOfPoint(playerid, 3.0,1147.6999511719,-1184.1999511719,32))
        return SendClientMessage(playerid, 0xAD0000AA, "Vocк nгo estб no local para se equipar");
            new Armas_Comando_Vermelho = 40*pDados[playerid][Cargo]; //Cargo Almenta 40 Baalas Amis
            GivePlayerWeapon(playerid, 24, Armas_Comando_Vermelho);
            GivePlayerWeapon(playerid, 25, Armas_Comando_Vermelho);
            GivePlayerWeapon(playerid, 29, Armas_Comando_Vermelho);
            GivePlayerWeapon(playerid, 31, Armas_Comando_Vermelho);
    }
Reply
#5

Resolvido
Reply
#6

que erro Losse de novo ? se for й pq vc esqueceu de dar Tab no codigo (Deixar Organizado) tipo
pawn Код:
bCMD[souumcodigomalintendado]-(playerid)
{
SendClientMessage(playerid,  -1, "Voce й um codigo mal intendado ");
return 1;
}
agora isso й intentado
pawn Код:
bCMD[souumbomcodigo]-(playerid)
{
    SendClientMessage(playerid, -1, "Vocк й um bom codigo, otimo garoto '-'");
    return 1;
}
Reply
#7

identaзгo foi feita pra ajudar ser-humanos entender o cуdigo, identaзгo nгo ffaz a minima diferenзa pro compilador (nenhum lag/erro grave)
Reply
#8

Quote:
Originally Posted by Jay_McReary
Посмотреть сообщение
identaзгo foi feita pra ajudar ser-humanos entender o cуdigo, identaзгo nгo ffaz a minima diferenзa pro compilador (nenhum lag/erro grave)
Isso em Pawn. Em Python, por exemplo, os delimitadores de blocos de cуdigos sгo feitos por endentaзгo.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)