SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts > Includes

Reply
 
Thread Tools Display Modes
Old 17/05/2020, 05:38 AM   #31
Maniak
Little Clucker
 
Join Date: Feb 2020
Posts: 10
Reputation: 0
Default Re: DCC - Discord Command Controller.

Quote:
Originally Posted by ChandraLouis View Post
Is there a way to check the Discord's role?
Theres this:

Code:
//  roles
native DCC_Role:DCC_FindRoleByName(DCC_Guild:guild, const role_name[]);
native DCC_Role:DCC_FindRoleById(const role_id[]);

native DCC_GetRoleId(DCC_Role:role, dest[DCC_ID_SIZE], max_size = sizeof dest);
native DCC_GetRoleName(DCC_Role:role, dest[], max_size = sizeof dest);
native DCC_GetRoleColor(DCC_Role:role, &color);
native DCC_GetRoleColour(DCC_Role:role, &colour) = DCC_GetRoleColor; // for our British mates
native DCC_GetRolePermissions(DCC_Role:role, &perm_high, &perm_low); // 64 bit integer
native DCC_IsRoleHoist(DCC_Role:role, &bool:is_hoist);
native DCC_GetRolePosition(DCC_Role:role, &position);
native DCC_IsRoleMentionable(DCC_Role:role, &bool:is_mentionable);
Maniak is offline   Reply With Quote
Old 17/05/2020, 06:14 AM   #32
ChandraLouis
Banned
 
Join Date: Mar 2013
Location: Indonesia
Posts: 438
Reputation: 37
Default Re: DCC - Discord Command Controller.

Quote:
Originally Posted by Maniak View Post
Theres this:

Code:
//  roles
native DCC_Role:DCC_FindRoleByName(DCC_Guild:guild, const role_name[]);
native DCC_Role:DCC_FindRoleById(const role_id[]);

native DCC_GetRoleId(DCC_Role:role, dest[DCC_ID_SIZE], max_size = sizeof dest);
native DCC_GetRoleName(DCC_Role:role, dest[], max_size = sizeof dest);
native DCC_GetRoleColor(DCC_Role:role, &color);
native DCC_GetRoleColour(DCC_Role:role, &colour) = DCC_GetRoleColor; // for our British mates
native DCC_GetRolePermissions(DCC_Role:role, &perm_high, &perm_low); // 64 bit integer
native DCC_IsRoleHoist(DCC_Role:role, &bool:is_hoist);
native DCC_GetRolePosition(DCC_Role:role, &position);
native DCC_IsRoleMentionable(DCC_Role:role, &bool:is_mentionable);
How can i use that?
ChandraLouis is offline   Reply With Quote
Old 17/05/2020, 03:07 PM   #33
JoaoGhost
Big Clucker
 
JoaoGhost's Avatar
 
Join Date: Sep 2018
Location: Brazil
Posts: 107
Reputation: 3
Default Re: DCC - Discord Command Controller.

Help!
PHP Code:
D:\usuarios\alumno\escritorio\SAO\pawno\include\dc c.inc(14) : error 001expected token")"but found "<"
D:\usuarios\alumno\escritorio\SAO\pawno\include\dc c.inc(14) : warning 231state specification on forward declaration is ignored
D
:\usuarios\alumno\escritorio\SAO\pawno\include\dc c.inc(14) : error 001expected token";"but found ")"
D:\usuarios\alumno\escritorio\SAO\pawno\include\dc c.inc(15) : error 001expected token")"but found "<"
D:\usuarios\alumno\escritorio\SAO\pawno\include\dc c.inc(15) : warning 231state specification on forward declaration is ignored
D
:\usuarios\alumno\escritorio\SAO\pawno\include\dc c.inc(15) : error 001expected token";"but found ")"
D:\usuarios\alumno\escritorio\SAO\pawno\include\dc c.inc(19) : error 001expected token")"but found "<"
D:\usuarios\alumno\escritorio\SAO\pawno\include\dc c.inc(19) : error 085no states are defined for symbol "SendDC"
D:\usuarios\alumno\escritorio\SAO\pawno\include\dc c.inc(19) : error 029invalid expressionassumed zero
D
:\usuarios\alumno\escritorio\SAO\pawno\include\dc c.inc(19) : fatal error 107too many error messages on one line 
JoaoGhost is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with Discord Connector baki Scripting Help 3 25/06/2018 12:03 PM
Discord Help baki Scripting Help 4 09/08/2017 10:28 PM
Discord for SA-MP? Lorenc_ Plugin Development 83 05/02/2017 07:01 PM


All times are GMT. The time now is 11:28 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.