maddinat0r/samp-discord-connector

How to get a maximum arrays in GetUserName

KirovNoName opened this issue · 3 comments

is this correct?

    new dcname[DCC_ID_SIZE];
    DCC_GetUserName(user, dcname, 16);

is this correct?

    new dcname[DCC_ID_SIZE];
    DCC_GetUserName(user, dcname, 16);

Wrong,

For Getting User name

new dcname[DCC_USERNAME_SIZE];
DCC_GetUserName(user, dcname, sizeof(dcname));

This should work :

new dcname [DCC_USERNAME_SIZE];
DCC_GetUserName(user, dcname);

thanks