DCC_Guild in Discord Connector.
#1

So, i'm having a problem with Discord connector,

i wan't to use this:
pawn Код:
DCC_HasGuildMemberRole(DCC_Guild, DCC_User:user, DCC_Role:role, &bool:has_role);
so only specific roles can use a certain command, (i'm using DCC.inc)

My problem is the formatting (or whatever you call that) thing of DCC_Guild and DCC_Role, like, how do i play with them,

if i do
pawn Код:
new DCC_Guild:guildId;
guildId = *guildid*;
it gives me a tag mismatch warning,
and if i do
pawn Код:
guildId = strlen("*guildid*");
it still gives me a tag mismatch warning, what should i do?
Reply
#2

PHP код:
guildId "*guildid*"
Reply
#3

still tag mismatch..
Reply
#4

pawn Код:
//  guilds
native DCC_Guild:DCC_FindGuildByName(const guild_name[]);
native DCC_Guild:DCC_FindGuildById(const guild_id[]);
These two functions return what you need.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)