Question cBuf_addtext joining command with function result

Pyrex BLJ

im done :)
Messages
605
Reaction score
338
Points
953
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

0k_Wwc3XToGVwTZGOcLK0w.png


thanks in advance, Pyrex
 
Top