Comparing password [MySQL Threaded queries]
#3

It might be that PlayerInfo[playerid][Pass] is empty if you use a MySQL plugin that's newer than R8. The script tries to do something like "sizeof(PlayerInfo[playerid][Pass])" which will not return 129 as you expect it to (read more about this on the forum, there's even one tutorial about it).

You need to add an extra parameter to that cache_get_row line. Also, for future easiness, learn how you debug. You could've become aware of the issue easily if you had just printed the two strings you're comparing prior to the strcmp call. printf is your buddy.
Reply


Messages In This Thread
Comparing password [MySQL Threaded queries] - by emokidx - 31.03.2013, 07:32
Re: Comparing password [MySQL Threaded queries] - by emokidx - 01.04.2013, 15:11
Re: Comparing password [MySQL Threaded queries] - by AndreT - 01.04.2013, 16:22
Re: Comparing password [MySQL Threaded queries] - by emokidx - 02.04.2013, 12:07

Forum Jump:


Users browsing this thread: 1 Guest(s)