C++ Calling Function.

Results 1 to 3 of 3
  1. #1
    Mocro.net Mocro is offline
    MemberRank
    Feb 2008 Join Date
    Amsterdam.Location
    891Posts

    C++ Calling Function.

    i want to call a function in other place

    Code:
    void MMatchServer::callme(const MUID& uidPlayer){
    		MMatchRuleQuest::callme2(uidPlayer);
    }
    error i get:

    Code:
     error C2352:  illegal call of non-static member function
    i have tryed to include .h file didnt work


  2. #2
    Praise the Sun! Solaire is offline
    MemberRank
    Dec 2007 Join Date
    Undead BurgLocation
    2,862Posts

    Re: C++ Calling Function.

    Change the header definition of the function to static void or get the instance of the MMatchRule, typecast it to MMatchRuleQuest and then call the function. By all logics I think you should use FindStage, then call GetRule on that stage and typecast it to MMatchRuleQuest (after making sure the gameplay is actually quest)

  3. #3
    Mocro.net Mocro is offline
    MemberRank
    Feb 2008 Join Date
    Amsterdam.Location
    891Posts

    Re: C++ Calling Function.

    thank you works now



Advertisement