SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 28/04/2020, 11:18 AM   #1
Proxus
Huge Clucker
 
Proxus's Avatar
 
Join Date: May 2018
Location: United Kingdom
Posts: 462
Reputation: 20
Default Issue with DCC_OnChannelMessage (outdated callback, perhaps?)

Hey, I was using this callback but it doesn't get called.
Code:
forward DCC_OnChannelMessage(DCC_Channel:channel, DCC_User:author, const message[]);
public DCC_OnChannelMessage(DCC_Channel:channel, DCC_User:author, const message[])
I was told that it was outdated but I can't find any functions that may replace this.
This seems to also be listed here: https://github.com/maddinat0r/samp-d...tor/issues/136

The closest I found was this:
Code:
forward DCC_OnMessageCreate(DCC_Message:message);
However, the parameters are fairly limited.

Other options would be using these natives with the above callback ^:
Code:
native DCC_GetMessageChannel(DCC_Message:message, &DCC_Channel:channel);
native DCC_GetMessageAuthor(DCC_Message:message, &DCC_User:author);
Is there another easier way?
__________________
Developer @ Trucknation
"Never tell people how to do things. Tell them what to do and they will surprise you with their ingenuity"


IMPORTANT LINKS
An upcoming mix of trucking & light roleplay
Proxus is online now   Reply With Quote
Old 28/04/2020, 11:34 AM   #2
Markski
Big Clucker
 
Markski's Avatar
 
Join Date: Apr 2015
Location: La Plata, Argentina
Posts: 133
Reputation: 59
Default Re: Issue with DCC_OnChannelMessage (outdated callback, perhaps?)

There's no easier way since the last DCC update. It shouldn't be that hard anyways, you'll just need to fetch those two things at the top of the callback. And of course, DCC_GetMessageContent for the message itself.
Markski is offline   Reply With Quote
Old 28/04/2020, 11:35 AM   #3
Proxus
Huge Clucker
 
Proxus's Avatar
 
Join Date: May 2018
Location: United Kingdom
Posts: 462
Reputation: 20
Default Re: Issue with DCC_OnChannelMessage (outdated callback, perhaps?)

Quote:
Originally Posted by Markski View Post
There's no easier way since the last DCC update. It shouldn't be that hard anyways, you'll just need to fetch those two things at the top of the callback. And of course, DCC_GetMessageContent for the message itself.
That's what I suspected, cheers for the clarification.
__________________
Developer @ Trucknation
"Never tell people how to do things. Tell them what to do and they will surprise you with their ingenuity"


IMPORTANT LINKS
An upcoming mix of trucking & light roleplay
Proxus is online now   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
Foreach Outdated Th3b3ast5 Scripting Help 3 15/05/2013 03:17 AM
How to check which plugin is outdated? Denying Scripting Help 11 21/03/2013 12:18 PM
Can Outdated includes cause this San1 Scripting Help 6 26/06/2012 08:54 PM
Is 0.3a outdated? Venturas General 8 26/08/2010 09:55 PM
MYSQL Issue - Callback "hanging" NeRoSiS Help Archive 0 28/02/2010 06:51 PM


All times are GMT. The time now is 05:27 PM.


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