English Solved Database error with whitelist check

  • Auteur de la discussion Auteur de la discussion MrLioN34
  • Date de début Date de début

MrLioN34

User
2/9/24
20
0
300
Hello

I want to add a whitelist to my server. It says "Request received from the server... Verifying..." and I haven't been able to solve this problem for 2 days. How can I solve it?

And when I looked for whitelist in the server log I only saw this.

Code:
2024/09/04, 23:55:21 "DATABASE WARNING Query is not allowed: SELECT uid FROM whitelist"

WL53452.png
 
Vos logs extDB | Your extDB logs
https://paste-me.net/uzula
Dernière édition par un modérateur:
Solution
Yes, exactly ! I don't know exactly how it works as very few people use it, but I suppose you have to add something like this :
Code:
[getWhitelist]
SQL1_1 = SELECT uid FROM whitelist;
SQL1_INPUTS = 0
OUTPUT = 1

And modify this line in the script to replace the request with "getWhitelist" :
Code:
private _query = (["SELECT uid FROM whitelist",2,true] call DB_fnc_asyncCall);

I advise you to look in your other files at how SQL queries are made to do the same thing