samp-discord-connector icon indicating copy to clipboard operation
samp-discord-connector copied to clipboard

Couldn't find any examples

Open karaok1 opened this issue 4 years ago • 1 comments

Since I'm not that familiar with pawn and pawno, can you provide a basic quick-start/setup as a working example? For example, here: DCC_GetChannelId(DCC_Channel:channel, dest[DCC_ID_SIZE], max_size = sizeof dest); how should I define 'channel', and what should 'dest' look like?

karaok1 avatar Apr 11 '20 20:04 karaok1

All getter functions (DCC_GetSomething) work with variable references:

new id[DCC_ID_SIZE];
DCC_GetChannelId(my_channel, id);

Additionally, those getters return true or false based on whether the value was successfully retreived or not.

maddinat0r avatar May 25 '20 22:05 maddinat0r