Q: MySQL
#5

Quote:
Originally Posted by div
View Post
cache get field content in a new defined variable, then compare the value

Code:
if(!PlayerData[playerid][pExam]) >=1)
So, it will only allow 1 or more than 1, not less than that.
That's broken... You've got another bracket in there.

If you check a variable with the ! operator, it's a not, so anything other than 1, being 0, or -1 will return a result.

The if statement the OP had, should at least give some result.



OP, chuck a print statement in there so you know whether it's actually hitting that check and whether it's making it out the other side.
Reply


Messages In This Thread
Q: MySQL - by Uberanwar - 25.06.2018, 20:58
Re: Q: MySQL - by Calisthenics - 25.06.2018, 21:32
Re: Q: MySQL - by Uberanwar - 25.06.2018, 23:25
Re: Q: MySQL - by div - 26.06.2018, 03:05
Re: Q: MySQL - by Sew_Sumi - 26.06.2018, 05:18
Re: Q: MySQL - by Calisthenics - 26.06.2018, 07:04
Re: Q: MySQL - by GTLS - 26.06.2018, 08:19
Re: Q: MySQL - by Uberanwar - 06.07.2018, 06:58
Re: Q: MySQL - by Calisthenics - 06.07.2018, 07:10
Re: Q: MySQL - by Uberanwar - 06.07.2018, 07:29

Forum Jump:


Users browsing this thread: 1 Guest(s)