03.04.2016, 15:03
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
IGUAIS
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(matricula, cInfo[c][Matricula], true) == 0)
{
print("iguais");
}
else print("diferentes");
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(matricula, cInfo[c][Matricula], true) == 0)
{
print("iguais");
}
else print("diferentes");