Ban system [ MySQL ]
#8

Remove the red text. Function passes by reference to user_id and then you return the value of cache_get_value_name_int which will be either 0 or 1 and bug it.

The if statement is redundant because you pass user_id onto WHERE clause in query. Unless you want to avoid race check collisions but this is not the way to do it.
Reply


Messages In This Thread
Ban system [ MySQL ] - by IdonTmiss - 06.08.2018, 01:49
Re: Ban system [ MySQL ] - by IdonTmiss - 06.08.2018, 02:54
Re: Ban system [ MySQL ] - by DBZdabIt3Bro7 - 06.08.2018, 03:48
Re: Ban system [ MySQL ] - by IdonTmiss - 06.08.2018, 04:28
Re: Ban system [ MySQL ] - by Calisthenics - 06.08.2018, 09:02
Re: Ban system [ MySQL ] - by IdonTmiss - 06.08.2018, 12:41
Re: Ban system [ MySQL ] - by IdonTmiss - 06.08.2018, 14:50
Re: Ban system [ MySQL ] - by Calisthenics - 07.08.2018, 08:38

Forum Jump:


Users browsing this thread: 3 Guest(s)