Jump to content

Compile Error after last FP update

Fixed 1.7.0

venda_vole
venda_vole

Posted

06/11 20:41:36 | Failed compiling 'OwnCasinoPremium.cs':

06/11 20:41:36 | 1. 'ulong' does not contain a definition for 'userid' and no accessible extension method 'userid' accepting a first argument of type 'ulong' could be found (are you missing a using directive or an assembly reference?) [CS1061]
(OwnCasinoPremium 23 line 682)

Yaki

Posted

same error for me as well

119 OwnCasinoPremium - Failed to compile: 'ulong' does not contain a definition for 'userid' and no accessible extension method 'userid' accepting a first argument of type 'ulong' could be found (are you missing a using directive or an assembly reference?) | Line: 682, Pos: 23

Yaki

Posted

heres the fix for anyone interested

starting on line 677 change

private bool CheckTCAuth(ulong ownerid, BasePlayer player)
        {
            var tc = player.GetBuildingPrivilege();
            foreach (var p in tc.authorizedPlayers)
            {
                if (p.userid == player.userID)
                {
                    return true;
                }
            }
            return false;
        }

to this

private bool CheckTCAuth(ulong ownerid, BasePlayer player)
        {
            var tc = player.GetBuildingPrivilege();
            foreach (var p in tc.authorizedPlayers)
            {
                if (p == player.userID)
                {
                    return true;
                }
            }
            return false;
        }

 

NooBlet

Posted

@Yaki thanks  . and sorry for delay im not around for last nights update

  • Like 1
NooBlet

Posted

Changed Status from Pending to Fixed

2m

Downloads

Total number of downloads.

9.6k

Customers

Total customers served.

139.5k

Files Sold

Total number of files sold.

2.9m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.