Jump to content

Compile Error after last FP update

Fixed 1.7.0

user_404
user_404

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

NooBlet

Posted

Changed Status from Pending to Fixed

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
2.5m
Total downloads
Customers
11.3k
Customers served
Files Sold
161.5k
Total sales
Payments
3.5m
Processed total
×
×
  • 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.