Raised This Month: $404 Target: $400
 101% 

Showing results 1 to 25 of 500
Search took 1.98 seconds.
Search: Posts Made By: DJ Tsunami
Forum: Scripting 09-30-2018, 10:30
Replies: 7
Views: 306
Posted By DJ Tsunami
Re: Making a non interactive panel

Seems like you could replace that entire switch statement with:

ShowSpecMenu(param1);
ClientCommand(param1, "slot%d", param2);
Forum: Snippets and Tutorials 09-22-2018, 04:18
Replies: 11
Views: 705
Posted By DJ Tsunami
Re: SourceMod-Npp-Docs (Autocompletion/Docs/Highlighting for Notepad++)

Why not just contribute to https://github.com/Dillonb/SublimeSourcePawn instead of making a new package?
Forum: General 09-07-2018, 16:03
Replies: 5
Views: 248
Posted By DJ Tsunami
Re: Can you add someone to multiple groups?

Yes, it's possible with SQL admins.
Forum: Extensions 08-28-2018, 04:00
Replies: 51
Views: 12,014
Posted By DJ Tsunami
Re: REST in Pawn - Communicate with JSON REST APIs

New release:

Possible fix for the crashes (thanks Peace-Maker)
Added ConnectTimeout, FollowLocation and Timeout properties to HTTPClient (thanks CrazyHackGUT)
Added error message to...
Forum: Plugins 08-18-2018, 12:00
Replies: 2,067
Views: 1,095,932
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: 301
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: 198
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: 250
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: 260
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: 234
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: 361
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: 361
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: 361
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: 348
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: 148
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: 174
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: 396
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: 868
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: 51
Views: 12,014
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: 734
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: 51
Views: 12,014
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: 242
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: 51
Views: 12,014
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: 2,114
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: 2,114
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...
Showing results 1 to 25 of 500

 
Forum Jump

All times are GMT -4. The time now is 19:00.


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