[Pedido] Socorro!
#1

if(dialogid == 12345) <<<<<Warning 212 Alguem me ajuda arruma?
{
if(strlen(inputtext)) {
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "Contas/%s.ini", sendername);
new File: hFile = fopen(string, io_read);
if (hFile) {
SendClientMessage(playerid, COLOR_YELLOW, "Esta conta jб existe em nosso sistema de registros, por favor escolha outro.");
fclose(hFile);
return 1;
}
OnPlayerRegister(playerid,inputtext);
}
Reply
#2

Acho Porque tem 5 Digitos. Tente Por 3.

Ex:
pawn Код:
if(dialogid == 123)
teste nй...
Reply
#3

n(19123) : warning 217: loose indentation

Ainda da esse warning... nгo deu certo...
Reply
#4

ah pqp.

pawn Код:
#pragma tabsize 0
Coloca isso em baixo das Includes. й Boa Sorte com Seu GM
Reply
#5

Jhonathan Feitosa.. sou fan seu!! serio msm!! Deu tudo certo aqui!! Valew!!
Reply
#6

Carinha...@ME CORRIJAMSE ESTIVER ERRADO
loose identation, й porque seu comando estб mal organizado por ex:
pawn Код:
if(strcmp("/teste", cmdtext, true) == 0)
{SendClientMessage(playerid, COR,"Teste");
                                      return1;                                 }
Com uma boa identaзгo :
pawn Код:
if(strcmp("/teste", cmdtext, true) == 0)
{
   SendClientMessage(playerid, COR, "Teste");
   return 1;
}
Aqui vai um bom tutorial : https://sampforum.blast.hk/showthread.php?tid=260576
Reply
#7

Eu jб consegui manolo.. vlw a intenзгo!!
Reply
#8

Quote:
Originally Posted by mengueh
Посмотреть сообщение
Carinha...@ME CORRIJAMSE ESTIVER ERRADO
loose identation, й porque seu comando estб mal organizado por ex:
pawn Код:
if(strcmp("/teste", cmdtext, true) == 0)
{SendClientMessage(playerid, COR,"Teste");
                                      return1;                                 }
Com uma boa identaзгo :
pawn Код:
if(strcmp("/teste", cmdtext, true) == 0)
{
   SendClientMessage(playerid, COR, "Teste");
   return 1;
}
Aqui vai um bom tutorial : https://sampforum.blast.hk/showthread.php?tid=260576
vocк estб certo, esta й a lуgica Identalуgica -rs
Reply
#9

@GarfieldObrigado garfield, me espelho em pessoas como vocк, shadoww2 entre outros!

@off
poderia me ajudar no meu tуpico? Horas+ Vip ;x

@Carinha
Poderia postar o seu comando por favor? Agradeзo.
Reply
#10

Aqui estб o codigo identado.

PHP код:


if(dialogid == 123) { //Chave aberta, necessita de espaзo abaixo. *1*
/*Espaзo do lado do IF \/ */
    
if(strlen(inputtext)) { //Outra chave aberta, mais um espaзo abaixo. *2*
        
GetPlayerName(playeridsendernamesizeof(sendername));
        
format(stringsizeof(string), "Contas/%s.ini"sendername);
        new 
FilehFile fopen(stringio_read);
        if (
hFile) {
        
SendClientMessage(playeridCOLOR_YELLOW"Esta conta jб existe em nosso sistema de registros, por favor escolha outro.");
        
fclose(hFile);
        return 
1;
    }
//Fecha a chave *2*/
    
OnPlayerRegister(playerid,inputtext);
}
/*fecha a chave *1*/ 
Cуdigo exemplo:

PHP код:
//Exemplo:
if ( sexo == 1) {
    if ( 
sexo == 1) {
        if ( 
sexo == 1) {
            if ( 
sexo == 1) {
                if ( 
sexo == 1) {
                    if ( 
sexo == 1) {
                        if ( 
sexo == 1) {
                        }
                    }
//Veja que as chaves EXATAMENTE em baixo do if.
                
}
            }
        }
    }

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)