RESOLVED
@5andysalive, THANKS FOR YOUR HELP
================================================
I'm probably missing something obvious, i'm a bit of a noob, but this is the compile error i'm getting:
"Can't compile mission init script'!
$CurrentDir:mpmissions\dayzOffline.chernarusplus\init.c(83): Broken expression (missing ';'?)"
here is the code from line 83 ( I added line numbers for reference) :
77 Mission CreateCustomMission(string path)
78 {
79 bool verify_admins = false; // true=verify presence of BI UID in admin list
80 string cmd_prefix = "/"; // Must be special character
81 ref TStringArray admins = {ID Removed}; // Add your BI UID or SteamID
83 bool IsPlayerAnAdmin(PlayerBase player) {
84 bool found = false;
for ( int i = 0; i < admins.Count(); ++i ) {
if(player.GetIdentity().GetId() == admins || player.GetIdentity().GetPlainId() == admins) { found=true; break; } } return found; }
Thanks in advance!