SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 500
Search took 0.01 seconds.
Search: Posts Made By: maddinat0r
Forum: Plugin Development 25/05/2018, 09:41 AM
Replies: 206
Views: 52,675
Posted By maddinat0r
Re: Discord Connector

Your code seems correct. Can you reliably reproduce this?


I'm not quite sure on that one anymore, but I think it was that either the user has to verify that email or the bot needs to explicitly...
Forum: Plugin Development 22/05/2018, 08:11 PM
Replies: 206
Views: 52,675
Posted By maddinat0r
Re: Discord Connector

As Kaperstone correctly stated, "<@!UserId>" (without the quotes) is the correct syntax.
Forum: Plugin Development 04/03/2018, 02:43 PM
Replies: 206
Views: 52,675
Posted By maddinat0r
Re: Discord Connector

I've just released v0.2.2, which contains a bug fix for the well-known crash that happened when editing channel permissions. I also disabled debug logging, as some people experienced performance...
Forum: Plugin Development 19/01/2018, 02:07 PM
Replies: 323
Views: 83,639
Posted By maddinat0r
Re: Teamspeak Connector

No, but you can check if a client already has the group id set before actually setting it:

const MY_CHANNEL_GROUP_ID = 123;
const MY_CHANNEL_ID = 321;

// ...

new channelid =...
Forum: Plugin Development 13/01/2018, 03:10 PM
Replies: 206
Views: 52,675
Posted By maddinat0r
Re: Discord Connector

What kind of support? You already can send russian text, as long as it's encoded in UTF8.
https://i.imgur.com/IazMiFM.png

EDIT: Just now noticed your attachment.
Discord sends UTF8-encoded text,...
Forum: Plugin Development 13/01/2018, 12:36 PM
Replies: 206
Views: 52,675
Posted By maddinat0r
Re: Discord Connector

Check the plugin log file for any error messages.
Forum: Plugin Development 11/01/2018, 04:37 PM
Replies: 206
Views: 52,675
Posted By maddinat0r
Re: Discord Connector

You have to place the log-core.so, which is located in the packaged download, into the same directory your sampsvr executable is.
Forum: Plugin Development 11/01/2018, 04:32 PM
Replies: 6,147
Views: 2,018,449
Posted By maddinat0r
Re: [REL] MySQL Plugin (Now on github!)

http://wiki.sa-mp.com/wiki/MySQL/R33
Forum: Everything and Nothing 08/01/2018, 06:49 PM
Replies: 11
Views: 1,850
Posted By maddinat0r
Re: Loaded AMX viewer

There is actually a mechanism already implemented into the abstract machine, called the "debug hook". It's basically a callback function that gets called on every BREAK opcode. Check the PAWN...
Forum: Tutorials 02/12/2017, 07:41 PM
Replies: 35
Views: 25,907
Posted By maddinat0r
Re: MySQL [R41-2] Registration System

So I was bored and looked through the code, and somehow thought that I already saw that code somewhere. Then I remembered: this looks a lot like the example login script from the plugin repository!...
Forum: Plugin Development 27/11/2017, 05:54 PM
Replies: 206
Views: 52,675
Posted By maddinat0r
Re: Discord Connector

The plugin is doing all networking in an extra thread, not the main AMX thread. The only source of lags could be the logging, because full logging is forcefully enabled. Disabling this will be...
Forum: Plugin Development 15/11/2017, 07:11 PM
Replies: 206
Views: 52,675
Posted By maddinat0r
Re: Discord Connector

There are no hardcoded limits - the rate limit system is dynamic. (https://discordapp.com/developers/docs/topics/rate-limits)
But as a rule of thumb I'd say around 5 messages every ~3 seconds are...
Forum: Plugin Development 15/11/2017, 03:01 PM
Replies: 206
Views: 52,675
Posted By maddinat0r
Re: Discord Connector

Discord bots are not meant to spam channels. Discord itself has rate limits in place to prevent this. If you send too many messages and hit the rate limit, the plugin will queue all other messages...
Forum: Plugin Development 12/11/2017, 07:45 AM
Replies: 6,147
Views: 2,018,449
Posted By maddinat0r
Re: [REL] MySQL Plugin (Now on github!)

A good question actually!
The MariaDB client library is compatible to MySQL and MariaDB servers. If this changes in the future, I'll make separate builds which use the MariaDB and the MySQL client...
Forum: Plugin Development 05/11/2017, 03:19 PM
Replies: 206
Views: 52,675
Posted By maddinat0r
Re: Discord Connector

This was a Discord API change, which I reflected back into the plugin functions. Basically the "private" field was removed and replaced by a channel "type" field:

new DCC_ChannelType:type;...
Forum: Plugin Development 08/10/2017, 07:06 PM
Replies: 206
Views: 52,675
Posted By maddinat0r
Re: Discord Connector

I've just released v0.2.1 with an important bug fix. If anyone used the plugin before and noticed that it suddenly stopped sending messages, try out that version.
Forum: Plugin Development 03/10/2017, 03:12 PM
Replies: 206
Views: 52,675
Posted By maddinat0r
Re: Discord Connector

It's not quite that simple. The function you'd want is 'DCC_CreateDirectMessageChannel'. The NodeJS library you used probably automatically creates such a channel if it doesn't exist. I'll add that...
Forum: Plugin Development 24/09/2017, 09:43 AM
Replies: 206
Views: 52,675
Posted By maddinat0r
Re: Discord Connector

I'll take a look at this.
Forum: Plugin Development 24/09/2017, 09:04 AM
Replies: 206
Views: 52,675
Posted By maddinat0r
Re: Discord Connector

Added Linux downloads for CentOS 7 and Debian Stretch (couldn't compile it on Jessie because of broken package dependencies).


You can use

if (DCC_FindChannelByName("general") !=...
Forum: Plugin Development 23/09/2017, 11:08 AM
Replies: 206
Views: 52,675
Posted By maddinat0r
Re: Discord Connector

v0.2 has been released.

BREAKING CHANGE
'DCC_Connect' was removed in favor of a server.cfg setting. Remove your call to `DCC_Connect` and add the following line to your server.cfg:
...
Forum: Plugin Development 12/09/2017, 07:16 PM
Replies: 6,147
Views: 2,018,449
Posted By maddinat0r
Re: [REL] MySQL Plugin (Now on github!)

I'm always trying to use the latest available log-core version. So if you use the latest version of both plugins, the log-core should be the same. If you're not sure however, you can always download...
Forum: Plugin Development 10/09/2017, 07:15 PM
Replies: 6,147
Views: 2,018,449
Posted By maddinat0r
Re: [REL] MySQL Plugin (Now on github!)

R41-4 has been released.
Changelog:
- bug-fix: multi-line queries are not parsed correctly from files
- Windows 'libmariadb.dll' was faulty; this resulted in a connection error for some users
...
Forum: Plugin Development 14/08/2017, 06:35 PM
Replies: 6,147
Views: 2,018,449
Posted By maddinat0r
Re: [REL] MySQL Plugin (Now on github!)

I could implement that, however this would require me to cache all values of the registered PAWN variables and always check if the value changed before generating the query. This likely has a bigger...
Forum: Plugin Development 31/07/2017, 05:30 PM
Replies: 45
[Plugin] Log plugin
Views: 23,774
Posted By maddinat0r
Re: Log plugin

Extended format specifiers are not implemented yet, but I'll make sure to add them some time.
Forum: Scripting Help 20/07/2017, 10:47 AM
Replies: 14
Views: 436
Posted By maddinat0r
Re: mysql_pquery crashing server

Can you show us the code where that call to "OnCharacterLoaded" is happening? (it's probably a mysql_pquery call too)
Showing results 1 to 25 of 500

 

All times are GMT. The time now is 10:39 AM.


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