26.07.2009, 08:18
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)
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.
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 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.



