Raised This Month: $135 Target: $400
 33% 

Showing results 1 to 25 of 500
Search took 0.36 seconds.
Search: Posts Made By: DJ Tsunami
Forum: Plugins Yesterday, 12:00
Replies: 2,065
Views: 1,081,715
Posted By DJ Tsunami
Re: Advertisements 2.0 (Updated 2016/03/23)

You probably have a typo in your advertisements.txt. We would need to see your full advertisements.txt to be able to point out the exact mistake.
Forum: Scripting 08-03-2018, 11:28
Replies: 10
Views: 261
Posted By DJ Tsunami
Re: SQL create column if not exists

You shouldn't dynamically create columns, that means your database design is wrong.

If you explain what kind of data you're trying to store, someone can probably give you the correct solution.
Forum: Scripting 07-26-2018, 07:33
Replies: 7
Views: 165
Posted By DJ Tsunami
Re: Help, KeysValues get key name

You can't get key names with KeyValues. You need to use SMCParser (https://sm.alliedmods.net/new-api/textparse/SMCParser), which fires an event for every key/value pair.

Or you can write the...
Forum: Scripting 07-02-2018, 07:45
Replies: 7
Views: 216
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: 227
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: 202
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: 297
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: 297
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: 297
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: 298
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: 129
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: 138
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: 344
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: 691
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: 49
Views: 10,821
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: 686
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: 49
Views: 10,821
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: 221
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: 49
Views: 10,821
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,816
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,816
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: 331
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: 325
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: 49
Views: 10,821
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,136
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.
Showing results 1 to 25 of 500

 
Forum Jump

All times are GMT -4. The time now is 21:43.


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