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

Showing results 1 to 25 of 500
Search took 0.10 seconds.
Search: Posts Made By: DJ Tsunami
Forum: Scripting 12-07-2018, 06:44
Replies: 2
Views: 211
Posted By DJ Tsunami
Re: Possible, memory leak in DataPack

CreateDataTimer initializes the DataPack for you (https://github.com/alliedmodders/sourcemod/blob/master/plugins/include/timers.inc#L206). So this:

DataPack pack = new DataPack();

should be:
...
Forum: General 11-23-2018, 09:22
Replies: 6
Views: 245
Posted By DJ Tsunami
Re: sm_rehash wipes admins.cfg

You can disable this by setting BackupConfigs to "0" in configs/sourcebans/sourcebans.cfg.
Forum: Extensions 11-22-2018, 12:00
Replies: 55
Views: 13,658
Posted By DJ Tsunami
Re: REST in Pawn - Communicate with JSON REST APIs

Thanks slekenda, this should be fixed in 1.0.6 (https://github.com/ErikMinekus/sm-ripext/releases/latest).
Forum: Scripting 10-25-2018, 12:00
Replies: 20
Views: 594
Posted By DJ Tsunami
Re: How to set SDKHook on round_start correctly?

Doesn't L4D only have like 8 players? Seems like this should suffice:


public void OnClientPutInServer(int client)
{
SDKHook(client, SDKHook_OnTakeDamage, OnTakeDamage);
}

public Action...
Forum: Scripting 09-30-2018, 11:30
Replies: 7
Views: 350
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, 05:18
Replies: 20
Views: 1,531
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, 17:03
Replies: 5
Views: 272
Posted By DJ Tsunami
Re: Can you add someone to multiple groups?

Yes, it's possible with SQL admins.
Forum: Extensions 08-28-2018, 05:00
Replies: 55
Views: 13,658
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, 13:00
Replies: 2,076
Views: 1,111,468
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, 12:28
Replies: 10
Views: 343
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, 08:33
Replies: 7
Views: 224
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, 08:45
Replies: 7
Views: 287
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, 10:55
Replies: 2
Views: 285
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, 17:52
Replies: 6
Views: 268
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, 04:09
Replies: 9
Views: 425
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, 09:44
Replies: 9
Views: 425
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, 09:31
Replies: 9
Views: 425
Posted By DJ Tsunami
Re: Undefined symbol "id"

Because the variable 'id' doesn't exist.
Forum: Scripting 06-22-2018, 10:30
Replies: 6
Views: 389
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, 10:28
Replies: 2
Views: 166
Posted By DJ Tsunami
Re: Warmod Query Problem

char insertquery[1024];
Change 1024 to the size that you need.
Forum: Scripting 06-08-2018, 14:40
Replies: 6
Views: 194
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, 06:03
Replies: 8
Views: 419
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, 13:34
Replies: 7
Views: 1,114
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, 07:12
Replies: 55
Views: 13,658
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, 05:04
Replies: 9
Views: 787
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, 06:42
Replies: 55
Views: 13,658
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...
Showing results 1 to 25 of 500

 
Forum Jump

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


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