[SOLVED] Strcmp problem
#1

Hello,
I'm trying to compare 2 strings in /login command.
1 -st string: params (when someone type /login [password])
2 -nd string: Pass (Real password from mysql database)

Код:
if(strcmp(Pass,params, true))
{
   SendClientMessage(playerid, GRAY, "[Server]: Wrong password!");
}
else
{
   //When password is correct
}
When i type wrong password, server shows me: [Server]: Wrong password!
When i type correct password, server shows me the same message.

I thought that something is wrong with my sql query but i tried to print these strings and i saw that they are equal.
Reply


Messages In This Thread
[SOLVED] Strcmp problem - by Blantas - 26.07.2009, 08:18
Re: Strcmp problem - by abhinavdabral - 26.07.2009, 08:31
Re: Strcmp problem - by Blantas - 26.07.2009, 08:38
Re: Strcmp problem - by Blantas - 26.07.2009, 11:51
Re: Strcmp problem - by refshal - 26.07.2009, 12:05
Re: Strcmp problem - by Blantas - 26.07.2009, 13:17
Re: Strcmp problem - by abhinavdabral - 26.07.2009, 13:48
Re: Strcmp problem - by Blantas - 26.07.2009, 13:57
Re: [SOLVED] Strcmp problem - by abhinavdabral - 26.07.2009, 14:44

Forum Jump:


Users browsing this thread: 2 Guest(s)