Posts: 276
Threads: 17
Joined: Dec 2015
Reputation:
0
The question is simple. I'm wondering how many && can you use in a if structure-..is there a limit or?
Posts: 343
Threads: 85
Joined: Dec 2011
Reputation:
0
I don't think that it has a limit, but I may be wrong, just guessing, but why?
Posts: 276
Threads: 17
Joined: Dec 2015
Reputation:
0
I'm developing a Roleplay server and some commands require you to have certain things. ( such as not be cuffed, be spawned, not AFK etc-.. )
Posts: 151
Threads: 18
Joined: Nov 2015
Reputation:
0
Well I'm not sure but it can be used after "%d", &[...]. Not quite sure tho.
Posts: 889
Threads: 4
Joined: Mar 2013
Reputation:
0
I don't believe there is a limit, but do take performance into account. Using lots of && might have worse performance than a well structured database query.
Posts: 276
Threads: 17
Joined: Dec 2015
Reputation:
0
Thank you for the answers and Sithis, nice posts count xD
Posts: 2,528
Threads: 124
Joined: Jul 2009
Reputation:
0
As a sidenote: If you are interested check out y_groups, you can filter commands by player groups.
Posts: 889
Threads: 4
Joined: Mar 2013
Reputation:
0
y_groups is a good feature indeed!
To Lucky13: What kind of code are you creating, are you using mysql? If you want, I might be able to assist you with joins and stuff if you really want an efficient system. Feel free to drop me a PM and we'll sort it out via Skype.