Question cBuf_addtext joining command with function result

Pyrex BLJ

im done :)
Staff member
Premium Member
Messages
604
Points
528
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



thanks in advance, Pyrex
 

Freezee

Insane-Known Member
Messages
184
Points
423
Not sure but the dvars are

xshowgamercardbyclientnumingame
xshowgamercardbyname
xshowrecentplayersgamercard
 
Top