need help always wrong
#5

pawn Код:
if(strcmp ( h_password, pData[ playerid ][ pPassword ] ) )
should be

pawn Код:
if(strcmp ( h_password, pData[ playerid ][ pPassword ] ) == 0)
because strcmp returns 0 if the strings match and 1 if they don't match.
Reply


Messages In This Thread
need help always wrong - by RicaNiel - 03.05.2012, 00:07
Re: need help always wrong - by ReneG - 03.05.2012, 00:08
Re: need help always wrong - by RicaNiel - 03.05.2012, 00:11
Re: need help always wrong - by RicaNiel - 03.05.2012, 01:24
Re: need help always wrong - by SuperViper - 03.05.2012, 01:39

Forum Jump:


Users browsing this thread: 3 Guest(s)