Raised This Month: $235 Target: $400
 58% 

Showing results 1 to 25 of 500
Search took 0.08 seconds.
Search: Posts Made By: DJ Tsunami
Forum: Scripting 07-02-2018, 07:45
Replies: 7
Views: 196
Posted By DJ Tsunami
Re: Help with KeyValues (I'm n00b)

You need to build the path to your .cfg file, and then import the file into your KeyValues object.

For example:

char path[PLATFORM_MAX_PATH];
BuildPath(Path_SM, path, sizeof(path),...
Forum: Scripting 07-01-2018, 09:55
Replies: 2
Views: 184
Posted By DJ Tsunami
Re: Creating callbacks in Sourcepawn

I believe you have to invoke the callback like so:

public void Save(ActionCallback callback) {
float test[2];

test[0] = 2.0;
test[1] = 1.0;

...
Forum: Scripting 06-24-2018, 16:52
Replies: 6
Views: 190
Posted By DJ Tsunami
Re: is this broken

It simply writes two tabs between the key and value. So if you have keys with different lengths, the values won't necessarily line up.
Forum: Scripting Help 06-24-2018, 03:09
Replies: 9
Views: 284
Posted By DJ Tsunami
Re: Undefined symbol "id"

Here's the code that he PM'ed me. Apparently he's new to coding.


public plugin_init()
{
register_plugin("blAck-pack", "1.0", "blAck.")

new flags = get_user_flags(id)

...
Forum: Scripting Help 06-23-2018, 08:44
Replies: 9
Views: 284
Posted By DJ Tsunami
Re: Undefined symbol "id"

You should create that variable and assign the client index. Since you only posted one line of code, I don't know where the client index is supposed to come from.
Forum: Scripting Help 06-23-2018, 08:31
Replies: 9
Views: 284
Posted By DJ Tsunami
Re: Undefined symbol "id"

Because the variable 'id' doesn't exist.
Forum: Scripting 06-22-2018, 09:30
Replies: 6
Views: 286
Posted By DJ Tsunami
Re: Steam ID Converter

Does it do anything new that other PHP libraries don't? For example https://packagist.org/packages/xpaw/steamid.
Forum: Scripting 06-22-2018, 09:28
Replies: 2
Views: 108
Posted By DJ Tsunami
Re: Warmod Query Problem

char insertquery[1024];
Change 1024 to the size that you need.
Forum: Scripting 06-08-2018, 13:40
Replies: 6
Views: 124
Posted By DJ Tsunami
Re: Code error 033 "array muse be indexed"

public Action Command_Spam(int client, int args)
{
char x[256];
GetCmdArg(1, x, sizeof(x));

char y[100];
GetCmdArg(2, y, sizeof(y));

int count = StringToInt(y);
Forum: Scripting 05-29-2018, 05:03
Replies: 8
Views: 281
Posted By DJ Tsunami
Re: STOP_IGNORING_RET_VAL warning

When is OnAskClientConnect called? The name implies it's either a client pre-connect hook, or a hook for when the "ask connect" box is shown.
Forum: SourceBans 05-15-2018, 12:34
Replies: 7
Views: 550
Posted By DJ Tsunami
Re: Warning: date(): It is not safe to rely on the system's timezone settings

It looks like you set the Date Format setting to "CEST", which is wrong. Just use "m-d-y H:i".
Forum: Extensions 10-03-2017, 06:12
Replies: 48
Views: 9,979
Posted By DJ Tsunami
Re: REST in Pawn - Communicate with JSON REST APIs

I think the code examples in the second post are better examples than the test plugin, as they do show the HTTPClient being stored in a global variable, and they are well documented.
Forum: Plugin/Gameplay Ideas and Requests 09-13-2017, 04:04
Replies: 9
Views: 670
Posted By DJ Tsunami
Re: [REQ] Assign flag A to STEAMID from MySQL database

Why not just use the generic one that comes with SourceMod: SQL Admins (https://wiki.alliedmods.net/SQL_Admins_(SourceMod))
Forum: Extensions 09-03-2017, 05:42
Replies: 48
Views: 9,979
Posted By DJ Tsunami
Re: REST in Pawn - Communicate with JSON REST APIs

I agree, it shouldn't. You should know which fields are returned based on the API's documentation. And APIs should be versioned so that changes don't break existing calls.


I'm not sure what's...
Forum: Scripting 09-01-2017, 06:10
Replies: 4
Views: 204
Posted By DJ Tsunami
Re: MySQL connection freezes via SQL_FastQuery

The MySQL extension does support threading (https://wiki.alliedmods.net/SQL_(SourceMod_Scripting)#Threading), you just have to use SQL_TQuery (https://sm.alliedmods.net/new-api/dbi/SQL_TQuery).
Forum: Extensions 08-31-2017, 03:57
Replies: 48
Views: 9,979
Posted By DJ Tsunami
Re: REST in Pawn - Communicate with JSON REST APIs

Version 1.0.3 now comes with the CA bundle in the configs/ripext folder, instead of it being hardcoded to /etc/ssl/certs/ca-certificates.crt. This fixes the issue above and also allows you to replace...
Forum: Scripting 08-27-2017, 08:17
Replies: 11
Views: 1,638
Posted By DJ Tsunami
Re: Exception reported: Invalid database Handle 0 (error: 4)

If you want someone to fix it for you, you need to post the whole plugin. Or if your friend is the one who wrote it, ask them.
Forum: Scripting 08-27-2017, 08:08
Replies: 11
Views: 1,638
Posted By DJ Tsunami
Re: Exception reported: Invalid database Handle 0 (error: 4)

You are using SQL_Connect, which is non-threaded, causing your server to freeze for 1 second (use SQL_TConnect instead). Subsequently you are not checking if there is an error in szError, so...
Forum: Scripting 08-16-2017, 05:12
Replies: 7
Views: 319
Posted By DJ Tsunami
Re: Colors do not properly show when reading them from a config file

Try kConfig.SetEscapeSequences(true) before importing the file.
Forum: Scripting 08-01-2017, 10:50
Replies: 4
Views: 309
Posted By DJ Tsunami
Re: How to write CreateTimer command properly?

Repeatable Timers (https://wiki.alliedmods.net/Timers_(SourceMod_Scripting)#Repeatable_Timers)
Forum: Extensions 07-29-2017, 11:22
Replies: 48
Views: 9,979
Posted By DJ Tsunami
Re: REST in Pawn - HTTP and JSON methodmaps

I intentionally left out object iteration to keep the code simple. Besides, when you're talking to an API you should know which fields are returned. If you're not talking to an API, I believe...
Forum: Coding MM:S Plugins & SM Extensions 07-29-2017, 03:11
Replies: 9
Views: 2,028
Posted By DJ Tsunami
Re: Version `GLIBCXX_3.4.21' not found

I had the same error when using std::string on Ubuntu 16.04, and I didn't know about the _GLIBCXX_USE_CXX11_ABI define, so I switched to ke::AString from AMTL.
Forum: Extensions 07-27-2017, 16:56
Replies: 48
Views: 9,979
Posted By DJ Tsunami
Re: REST in Pawn - HTTP and JSON methodmaps

Looks like there's a curl_easy_escape(), so shouldn't be that hard.
Forum: Extensions 07-27-2017, 13:24
Replies: 48
Views: 9,979
Posted By DJ Tsunami
Re: REST in Pawn - HTTP and JSON methodmaps

Great idea, but I would need to add hashing to this extension, which would make it more bloated. I'll think about it.


Correct, you don't have to worry about cleaning up response and...
Forum: General 07-24-2017, 13:39
Replies: 12
Views: 844
Posted By DJ Tsunami
Re: Why my server has crash?

You are clearly using No-Steam, which is illegal, and asking for support is against the rules (https://forums.alliedmods.net/misc.php?do=showrules). SourceMod only supports the latest games installed...
Showing results 1 to 25 of 500

 
Forum Jump

All times are GMT -4. The time now is 07:48.


Powered by vBulletin®
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Theme made by Freecode