Question cBuf_addtext joining command with function result

Discussion in 'Call of Duty: Black Ops 2 Scripts Questions' started by Pyrex BLJ, Aug 10, 2017.

  1. Pyrex BLJ

    Pyrex BLJ Moderator Staff Member

    514
    307
    378
    Credits:
    2,702
    im trying to show player cards in this sprx menu (in c++) and im having an issue with getting it to work properly

    i know that the command works as it does what it is supposed to in a normal cbuf command but not here

    Code:
    if (!getName(0) == *"Not Connected") {
                    char bufferr[50];
                    snprintf(bufferr, sizeof(bufferr), *"xshowgamercardbyname " + getName(0));
                    cBuf_Addtext(0, bufferr);
                }
    this is the getName() function

    [​IMG]

    thanks in advance, Pyrex
     
  2. Freezee

    Freezee Known Member

    182
    251
    273
    Credits:
    1,210
    Not sure but the dvars are

    xshowgamercardbyclientnumingame
    xshowgamercardbyname
    xshowrecentplayersgamercard
     
    The Dark Side likes this.

Share This Page