DCC_Guild in Discord Connector. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: DCC_Guild in Discord Connector. (
/showthread.php?tid=659403)
DCC_Guild in Discord Connector. -
SeanDenZYR - 02.10.2018
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?
Re: DCC_Guild in Discord Connector. -
Undef1ned - 02.10.2018
PHP код:
guildId = "*guildid*";
Re: DCC_Guild in Discord Connector. -
SeanDenZYR - 03.10.2018
still tag mismatch..
Re: DCC_Guild in Discord Connector. -
Calisthenics - 03.10.2018
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.