[Ajuda] strcmp bugado
#1

Preciso de verificar se duas strings sгo iguais, mas, o strcmp buga (?) e nгo as reconhece como iguais... WTF.

PHP код:
format(stringsizeof(string), "(c:%d) matricula: %s | cInfo[c][Matricula]: %s"cmatriculacInfo[c][Matricula]);
SendClientMessage(playeridCOLOR_CHATstring);
if(
strcmp(matriculacInfo[c][Matricula], true) == 0)
{
    
SendClientMessage(playerid, -1"lol");

Quando as duas variбveis sгo iguais, ex:

PHP код:
        matricula 02-SV-00
        cInfo
[c][Matricula] = 02-SV-00 
O strcmp reconhece como diferente!!! O debug em aзгo:



Como se vк aqui quando c=2 as duas strings ficam iguais, devia enviar a mensagem "lol" mas nгo envia....... Qual serб o problema?
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)