[Ajuda] strcmp bugado
#2

Entгo nгo sгo iguais! Verifique se realmente sгo pq strcmp nгo falha...

Nгo tem erro, se estб dando diferente й pq de fato й diferente...

@EDIT

Fiz testes e de fato funciona:
(fiz baseado no mais prуximo)

DIFERENTES
PHP код:
new 
        
c,
        
matricula[10] = "02-SV-00",
        
string[129]
    ;
    
enum pMatricula
    
{
        
Matricula[6]
    }
    new 
cInfo[1][pMatricula];
    
cInfo[c][Matricula] = "teste";
    if(
strcmp(matriculacInfo[c][Matricula], true) == 0
    { 
        print(
"iguais");
    } 
    else print(
"diferentes"); 
IGUAIS
PHP код:
new 
        
c,
        
matricula[10] = "02-SV-00",
        
string[129]
    ;
    
enum pMatricula
    
{
        
Matricula[9]
    }
    new 
cInfo[1][pMatricula];
    
cInfo[c][Matricula] = "02-SV-00";
    if(
strcmp(matriculacInfo[c][Matricula], true) == 0
    { 
        print(
"iguais");
    } 
    else print(
"diferentes"); 
Reply


Messages In This Thread
strcmp bugado - by bruxo00 - 03.04.2016, 14:28
Re: strcmp bugado - by F1N4L - 03.04.2016, 15:03
Re: strcmp bugado - by bruxo00 - 03.04.2016, 15:21
Re: strcmp bugado - by RogerCosta - 03.04.2016, 15:34
Re: strcmp bugado - by F1N4L - 03.04.2016, 16:06
Re: strcmp bugado - by bruxo00 - 03.04.2016, 21:17

Forum Jump:


Users browsing this thread: 1 Guest(s)