Raised This Month: $64 Target: $400
 16% 

Showing results 1 to 25 of 500
Search took 0.08 seconds.
Search: Posts Made By: DJ Tsunami
Forum: Scripting 10-25-2018, 12:00
Replies: 20
Views: 560
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: 340
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: 13
Views: 1,185
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: 263
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: 52
Views: 12,887
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,077
Views: 1,104,578
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: 325
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: 211
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: 278
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: 277
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: 266
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: 403
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: 403
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: 403
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: 378
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: 165
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: 187
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: 413
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,042
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: 52
Views: 12,887
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: 767
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: 52
Views: 12,887
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, 07:10
Replies: 4
Views: 248
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, 04:57
Replies: 52
Views: 12,887
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, 09:17
Replies: 11
Views: 2,248
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.
Showing results 1 to 25 of 500

 
Forum Jump

All times are GMT -4. The time now is 14:01.


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