Ok so i noticed my antihack calls a preprocesscommand on the user lists iv been trying to replicate this to add donators to a public variable with no success, seems i cant even get the file to be read. the file is placed in the ROOT of my server not the server.pbo for example superuser.sqf contains an array "["1234567","54534534"];" from the antihack it checks this array and places you in the super user list..
i create a new file called donators.sqf add the array then i try to run this from the server monitor in the server.pbo
"#include "donatorinit.sqf";"
inside donatorinit.ssqf contains:
"DonatorList = call compile preProcessFileLineNumbers "donators.sqf"; \\This is in the root folder"
i then try to run this code from the mission folder in particular select spawn points:
"if ((getPlayerUID player) in DonatorList) then {
systemChat ('Thanks for donating!');
};"
"if ((getPlayerUID player) in ["36760198","147365254"]) then {" works so where am i going wrong
my antihack can seem to access the files in the root of the server but when i try to make it do it i cant get it to work... any help would be hugely appreciated thanks cosa
i create a new file called donators.sqf add the array then i try to run this from the server monitor in the server.pbo
"#include "donatorinit.sqf";"
inside donatorinit.ssqf contains:
"DonatorList = call compile preProcessFileLineNumbers "donators.sqf"; \\This is in the root folder"
i then try to run this code from the mission folder in particular select spawn points:
"if ((getPlayerUID player) in DonatorList) then {
systemChat ('Thanks for donating!');
};"
"if ((getPlayerUID player) in ["36760198","147365254"]) then {" works so where am i going wrong
my antihack can seem to access the files in the root of the server but when i try to make it do it i cant get it to work... any help would be hugely appreciated thanks cosa