Comparing password [MySQL Threaded queries]
#4

Quote:
Originally Posted by AndreT
View Post
You need to add an extra parameter to that cache_get_row line.
Alright, found the tutorial. https://sampforum.blast.hk/showthread.php?tid=419858

Quote:
Originally Posted by AndreT
View Post
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).
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.
I already mentioned that
Quote:
Originally Posted by emokidx111
View Post
when I tried to print the password, it printed nothing.
But I was not sure, because [retard]I thought it was too long to be printed[/retard]

Thanks!
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)