Unmasking grade

Results 1 to 10 of 10
  1. #1
    Valued Member itsmemario is offline
    MemberRank
    Aug 2016 Join Date
    103Posts

    Unmasking grade

    I followed the unmasking grades tutorial but it unmasks all grades, I need to unmask just a few.

    Used this tutorial http://forum.ragezone.com/f497/tutor...2011-a-825732/

    Grade worked and everything but I can't figure out how to change "--Lv." to "99Lv." for just some of them.

    This is really important for me as I need VIP colors, appreciate any help of more experienced coders.

    Thanks in advance.
    Last edited by itsmemario; 21-08-16 at 03:23 AM.


  2. #2
    Valued Member Keristrasza is offline
    MemberRank
    Jun 2015 Join Date
    128Posts

    Re: Unmasking grade

    wtf does unmasking mean o______o

  3. #3
    Valued Member itsmemario is offline
    MemberRank
    Aug 2016 Join Date
    103Posts

    Re: Unmasking grade

    Quote Originally Posted by Keristrasza View Post
    wtf does unmasking mean o______o
    Sorry I should have mentioned that. Unmasking is simply removing "--" from Lvl in player list.

    Like, before:

    --Lv. Namehere

    after

    99Lv. Namehere

  4. #4
    Valued Member Keristrasza is offline
    MemberRank
    Jun 2015 Join Date
    128Posts

    Re: Unmasking grade

    o ok, just add a condition to the two occurrences of sprintf(szLevel,"--"); in zplayerlistbox.cpp, e.g. if (nGrade == 123) sprintf(szLevel, "%2d, nLevel); else strcpy(szLevel, "--");

  5. #5
    Valued Member itsmemario is offline
    MemberRank
    Aug 2016 Join Date
    103Posts

    Re: Unmasking grade

    Quote Originally Posted by Keristrasza View Post
    o ok, just add a condition to the two occurrences of sprintf(szLevel,"--"); in zplayerlistbox.cpp, e.g. if (nGrade == 123) sprintf(szLevel, "%2d, nLevel); else strcpy(szLevel, "--");
    I tried to put that in the code but it gave me many errors, I did it wrong apparently.

    I'm really new, and a noob in coding, I just started learning C++. If you could help me out on this one I truly appreciate it.

    PHP Code:
        if(GetUserInfoUID(puid,_color,sp_name,gid)){
            
    sprintf(szLevel,"--");
            
    szRefName szName;
            
    bSpUser true;
        }
        else {
            
    sprintf(szLevel,"%2d",nLevel);
            
    szRefName szName;
        } 

  6. #6
    Valued Member Keristrasza is offline
    MemberRank
    Jun 2015 Join Date
    128Posts

    Re: Unmasking grade

    ah sorry forgot an end quote, should be

    PHP Code:
    if (nGrade == MMUG_VIP1)            sprintf(szLevel"%2d"nLevel);        else            strcpy(szLevel"--"); 
    edit: apparently ragezone doesn't like newlines, but I guess you get the point O__O

  7. #7
    Valued Member itsmemario is offline
    MemberRank
    Aug 2016 Join Date
    103Posts

    Re: Unmasking grade

    Quote Originally Posted by Keristrasza View Post
    ah sorry forgot an end quote, should be

    PHP Code:
    if (nGrade == MMUG_VIP1)            sprintf(szLevel"%2d"nLevel);        else            strcpy(szLevel"--"); 
    edit: apparently ragezone doesn't like newlines, but I guess you get the point O__O
    Hey,

    PHP Code:
     error C2065'nGrade' undeclared identifier 
    Tried changing to nUGradeID, didnt work either...

    -edit-

    i think i figured it out, i will update this after i tested

    --edit--

    omg it worked, thank you so much!! had to change some little things but its working perfectly now, thanks a lot for you help and all help you gave me in my other threads too!
    Last edited by itsmemario; 21-08-16 at 02:11 AM.

  8. #8
    Valued Member Keristrasza is offline
    MemberRank
    Jun 2015 Join Date
    128Posts

    Re: Unmasking grade

    right, change nGrade to gid at that spot, but don't change it for the function for channels above

  9. #9
    Valued Member itsmemario is offline
    MemberRank
    Aug 2016 Join Date
    103Posts

    Re: Unmasking grade

    Quote Originally Posted by Keristrasza View Post
    right, change nGrade to gid at that spot, but don't change it for the function for channels above
    Yup thats what I did, Thanks once again!

    btw should I have just added it below the code or replace it? I put it below.. Well, it worked...

  10. #10
    Valued Member Keristrasza is offline
    MemberRank
    Jun 2015 Join Date
    128Posts

    Re: Unmasking grade

    Replace



Advertisement