Results 1 to 5 of 5

Thread: Compiler Error CS0246: namespace name 'IPLAYER' could not be found

  1. #1
    Supporting Member varrattu's Avatar
    Join Date
    Aug 2012
    Posts
    263
    Post Thanks / Like
    Total Downloaded
    69.72 MB

    Compiler Error CS0246: namespace name 'IPLAYER' could not be found

    Using the lines

    void Mission_EventChat(IPlayer from, string msg) { ... }

    and

    public void Chat(string line, IPlayer to) { ... }

    I get the compiler Error CS0246: namespace name 'IPlayer' could not be found (missing a using directive or an assembly reference).


    "using maddox.game; using maddox.game.play; using maddox.game.world;" are present.


    Do you have any hints or maybe a solution.

    ~V~
    "Doing additional releases does take up additional effort ..." (Bonkin, Sep-10-2018)

  2. #2
    Team Fusion xoriguer's Avatar
    Join Date
    Mar 2017
    Location
    Elx
    Posts
    195
    Post Thanks / Like
    Total Downloaded
    0

    Re: Compiler Error CS0246: namespace name 'IPLAYER' could not be found

    maddox.game.IPlayer

    This error is from a VS project? if yes you should link gamePlay.dll.

  3. #3
    Supporting Member varrattu's Avatar
    Join Date
    Aug 2012
    Posts
    263
    Post Thanks / Like
    Total Downloaded
    69.72 MB

    Re: Compiler Error CS0246: namespace name 'IPLAYER' could not be found

    Quote Originally Posted by xoriguer View Post
    maddox.game.IPlayer

    This error is from a VS project? if yes you should link gamePlay.dll.
    Thanks xoriguer, yes I did: //$reference parts/core/gamePlay.dll

    The coop script example.cs provided by "41Sqn_Banks" works perfect: http://forum.1cpublishing.eu/showthread.php?t=34939.

    But when I add other methods/snippets the above error occurs.

    ~V~
    "Doing additional releases does take up additional effort ..." (Bonkin, Sep-10-2018)

  4. #4
    Team Fusion xoriguer's Avatar
    Join Date
    Mar 2017
    Location
    Elx
    Posts
    195
    Post Thanks / Like
    Total Downloaded
    0

    Re: Compiler Error CS0246: namespace name 'IPLAYER' could not be found

    Send me your script via pm and I'll take a look.

    Cheers.

    Quote Originally Posted by varrattu View Post
    Thanks xoriguer, yes I did: //$reference parts/core/gamePlay.dll

    The coop script example.cs provided by "41Sqn_Banks" works perfect: http://forum.1cpublishing.eu/showthread.php?t=34939.

    But when I add other methods/snippets the above error occurs.

    ~V~

  5. #5
    Novice Pilot
    Join Date
    Jul 2013
    Posts
    80
    Post Thanks / Like
    Blog Entries
    2
    Total Downloaded
    76.75 MB

    Re: Compiler Error CS0246: namespace name 'IPLAYER' could not be found

    Did You slove it?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •