[Ajuda] Warnning bobo
#1

Olб ,

Galerinha, meu gm ta com 2 Warnning que nгo estou conseguino resolver, OBS : meu colega me passo e esses warnning ja veio ...

Me ajudem por favor

ATT : Oakley

Warnning :

pawn Код:
.pwn(19456) : warning 217: loose indentation
pwn(50639) : warning 203: symbol is never used: "label"

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

Header size:          11024 bytes
Code size:          2099176 bytes
Data size:          2656876 bytes
Stack/heap size:      16384 bytes; estimated max. usage=4519 cells (18076 bytes)
Total requirements: 4783460 bytes

2 Warnings.
Linha 19456 :

pawn Код:
GetPlayerName(playerid, sendername, sizeof(sendername));
//cmd complrto

    if (strcmp(cmd, "/ma", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if (gPlayerLogged[playerid] != 0)
            {
            if(PlayerInfo[playerid][pAdmin] < 1)
            {
                MSGPLAYER(playerid, COLOR_GREY, "{00FFFF}Vocк nгo estб Autorizado a Usar este Comando!");
                return 1;
            }
                GetPlayerName(playerid, sendername, sizeof(sendername));
                format(string, sizeof(string), "{FF7256}((Administrador)) Olб!!,Posso Ajudar?", sendername);
                ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
            }
            else
            {
                MSGPLAYER(playerid, COLOR_GRAD1, "   Vocк nгo estб logado !");
            }
        }
        return 1;
    }
Linha 50639 :

Essa linha fica no final do GM

OBS : Nгo acha o erro .

Ajudem por favor !
Reply
#2

loose identation = vai na linha que ta dando esse erro e alinha com a linha de cima
symbol is never used: "label" = deleta o new label
Reply
#3

Ponha no topo do GM:

Em relaзгo ao 'loose indentation':
pawn Код:
#pragma tabsize 0
Em relaзгo ao "Label": Pressione CTRL + F, procura por 'Label', provavelmente vocк encontrarб a variбvel referente ao label(por exemplo, new Lavel, aн vocк apaga essa linha.
Reply
#4

Quote:
Originally Posted by Adrian Fahrenheit Tepes
Посмотреть сообщение
Ponha no topo do GM:

Em relaзгo ao 'loose indentation':
pawn Код:
#pragma tabsize 0
Em relaзгo ao "Label": Pressione CTRL + F, procura por 'Label', provavelmente vocк encontrarб a variбvel referente ao label(por exemplo, new Lavel, aн vocк apaga essa linha.
pragma nao tira o aviso, apenas esconde. e as vezes a mб identaзгo pode acarretar em erros no codigo
Reply
#5

@GabrielDias_Invision

Vlw manim consegui + rep

@Adrian

Vlw consegui tirar o label tbm ^^ +rep
Reply
#6

Entгo trate de identar.

E mesmo assim, esse GM jб й confuso, hб coisas desnecessбrias nele.
Reply
#7

Quote:
Originally Posted by Adrian Fahrenheit Tepes
Посмотреть сообщение
Entгo trate de identar.

E mesmo assim, esse GM jб й confuso, hб coisas desnecessбrias nele.
Sim sim, +1 pergunta, tipo, meu gm ta sem erro, sem warnning nenhum, a pasta scriptfiles ta certinha, tudo certo, mais o Serv nгo liga, sabe porq ? tipo, ele liga e desliga '-' atй no Serv_txt eu mexi mais ta normal
Reply
#8

Usa este.
pawn Код:
if( strcmp(cmd, "/ma", true ) == 0 )
    {
        if( IsPlayerConnected( playerid ) )
        {
            if( PlayerInfo[ playerid ][ pAdmin ] == 1)
            {
                SendClientMessage( playerid, COLOR_GREY, "[ERRO] Vocк nгo tem permissгo para usar este comando!" );
                return 1;
            }
            GetPlayerName( playerid, sendername, sizeof( sendername ) );
            new length = strlen(cmdtext);
            while ( ( idx < length ) && ( cmdtext[ idx ] <= ' ' ) )
            {
                idx++;
            }
            new offset = idx;
            new result[ 64 ];
            while ( ( idx < length ) && ( ( idx - offset ) < ( sizeof( result ) - 1 ) ) )
            {
                result[ idx - offset ] = cmdtext[ idx ];
                idx++;
            }
            result[ idx - offset ] = EOS;
            if(!strlen( result ) )
            {
                SendClientMessage( playerid, COLOR_GRAD, "USE: /ma [Texto]" );
                return 1;
            }
            if(strcmp( result,"1", true ) == 0) { result = " Olб, Posso ajudar-lo?"; }
            if(strcmp( result,"2", true ) == 0) { result = " A Staff agradeзe, tenha um bom jogo !"; }
            if(strcmp( result,"3", true ) == 0) { result = " Desculpe mais nгo posso ajudar-lo, Isso nгo й comigo.. :("; }
            format( string, sizeof( string ), "((Administrador))%s: %s", sendername, ( result ) );
            ProxDetector( 30.0, playerid, string, COLOR_ALLDEPT, COLOR_ALLDEPT, COLOR_ALLDEPT, COLOR_ALLDEPT, COLOR_ALLDEPT );
        }
        return 1;
    }
Reply
#9

@Sr.Pekeno

Vlw manim, o meu й mais Simples de usar so Digitar /ma que apareзe a mensagem ^^, oque eu preciso mesmo й saber porque meu Serv nгo estб querendo abrir.

@Edit

Alguem sabe porque meu samp_serv nгo ta querendo abrir ? tipo, gm ta sem warnning sem erro nenhum, pasta tudo normal ( eu acho ) mais mesmo assim, ele nгo liga, ele liga e desliga '-'

Ajudem por favor ^^
Reply
#10

Quote:
Originally Posted by Oakley_TwOPaCk
Посмотреть сообщение
@Sr.Pekeno

Vlw manim, o meu й mais Simples de usar so Digitar /ma que apareзe a mensagem ^^, oque eu preciso mesmo й saber porque meu Serv nгo estб querendo abrir.

@Edit

Alguem sabe porque meu samp_serv nгo ta querendo abrir ? tipo, gm ta sem warnning sem erro nenhum, pasta tudo normal ( eu acho ) mais mesmo assim, ele nгo liga, ele liga e desliga '-'

Ajudem por favor ^^
por algum acaso seu GM ta com 0kb no arquivo .amx dele?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)