Raised This Month: $23 Target: $400
 5% 

Showing results 1 to 25 of 500
Search took 0.01 seconds.
Search: Posts Made By: Fyren
Forum: General 08-08-2020, 13:03
Replies: 4
Views: 185
Posted By Fyren
Re: [CSGO] Error Log

If you don't know how to write SP, you should just find a different plugin because that one is insecure.

If you can or someone cares enough to fix it, it should not use plain Format/FormatEx to...
Forum: General 08-08-2020, 12:53
Replies: 2
Views: 141
Posted By Fyren
Re: How to prevent plugin from resetting when map changes

Plugins don't reload when the map changes, but clients disconnect and reconnect.
Forum: Scripting 07-26-2020, 23:50
Replies: 1
Views: 330
Posted By Fyren
Re: Trying to compile snake

An enum struct acts similarly to a struct or class from an OOP language. It replaces the old method of indexing arrays using an enum because that was extremely obtuse.

So in your second code...
Forum: General 07-16-2020, 15:49
Replies: 3
Views: 294
Posted By Fyren
Re: Compilling in linux making extra space in output filename

If you manually open a terminal and run something like:

/home/oplkill/hlserver/hlserver/tf/addons/sourcemod/scripting/spcomp op_classEnforcer.sp -o/home/oplkill/op_classEnforcer.smx

What's the...
Forum: General 06-23-2020, 16:38
Replies: 2
Views: 399
Posted By Fyren
Re: [Help] Metamod & Sourcemod won't load

If you just do "meta" in the server console, it says unknown command?

Is there a metamod-fatal.log in the metamod bin directory? If not, then you probably extracted the archive to the wrong...
Forum: General 06-14-2020, 20:20
Replies: 3
Views: 437
Posted By Fyren
Re: Extension: Help with events hooking?

Look at the SDK.



If SM is incorrectly telling the server to free an event, then the server itself would be crashing without your extension.
Forum: Metamod:Source Questions 05-31-2020, 17:33
Replies: 2
Views: 738
Posted By Fyren
Re: Security question ... what can source mode access on a windows machine ?

The answer to what you should do about security shouldn't actually have anything to do with what MM:S, SM, or plugins for either can do. You should not trust any of those things, or the game server...
Forum: Scripting 05-28-2020, 15:54
Replies: 6
Views: 545
Posted By Fyren
Re: error 001: expected token: "(", but found "{"

Which version of the compiler are you using? Can you give us an actual example of what you're doing?
Forum: General 05-28-2020, 15:52
Replies: 2
Views: 315
Posted By Fyren
Re: Sourcepawn crash

Accelerator is telling you the crash is because an extension is using SourcePawn from a thread that isn't the main thread. SP was not written to be thread-safe.

The extension that's actually...
Forum: Scripting 05-27-2020, 23:54
Replies: 5
Views: 402
Posted By Fyren
Re: Timers: Wiki misunderstanding

The documentation for the API page should be correct. (If it's not, file a bug report with code to reproduce and an explanation of what it is doing and what you think it should be doing.)

Since...
Forum: Scripting 05-27-2020, 23:46
Replies: 6
Views: 545
Posted By Fyren
Re: error 001: expected token: "(", but found "{"

On 1.11, you don't need to use view_as in cases like this to avoid a tag mismatch warning.
Forum: Scripting 05-27-2020, 04:14
Replies: 2
Views: 289
Posted By Fyren
Re: simple plugin won't load, says "bad header"

Since the code you gave here won't compile, it sounds like you're not actually even compiling and just trying to use the source code itself as a plugin.

The compiler turns source code into an...
Forum: Scripting 05-22-2020, 13:22
Replies: 3
Views: 335
Posted By Fyren
Re: Global Array + Enum Struct

gWeaponClass[][] should be gWeaponClass[] if you want it to be a 1D array of your struct. Your most recent sample compiles with no warnings or errors with that change on 1.11.

The warnings and...
Forum: Scripting 05-21-2020, 19:00
Replies: 3
Views: 335
Posted By Fyren
Re: Global Array + Enum Struct

The short answer is if you want a 1D array of enumWeaponClasses, then you declared your variable with too many dimensions.

The longer answer is fixing it still won't work on 1.10 due to a bug. It...
Forum: Scripting 05-09-2020, 17:04
Replies: 6
Views: 244
Posted By Fyren
Re: Pause/Unpause sourcemod plugins

The opposite. Pausing was removed a few years ago.
Forum: Scripting 05-05-2020, 18:06
Replies: 7
Views: 273
Posted By Fyren
Re: Database.Escape weird result

I didn't check what SM or the underlying MySQL function specifically do, but I'd guess the problem is you can't use the same buffer for both the source and destination.
Forum: Coding MM:S Plugins & SM Extensions 05-01-2020, 08:55
Replies: 2
Views: 1,285
Posted By Fyren
Re: GCC 5.4 manual hooks don't work

I don't have an older gcc to test, but I tried 9.2.0 and it worked.
Forum: Scripting 04-18-2020, 00:37
Replies: 2
Views: 354
Posted By Fyren
Re: Bot Mimic: Enum Structs (Invalid Handle)

ReadFile is int ReadFile(Handle hndl, int[] items, int num_items, int size). It reads the given number of things, each of the given size.

In your original code, you do ReadFile(hFile, iFrame,...
Forum: General 04-10-2020, 17:33
Replies: 6
Views: 562
Posted By Fyren
Re: [SM] Exception reported: Not enough space on the heap

The logging change that would report the plugin was merged about four and a half years ago into SM 1.8.
Forum: General 04-06-2020, 12:53
Replies: 1
Views: 222
Posted By Fyren
Re: Sourcepawn sockets with python

Websockets are not the same thing as sockets.
Forum: Scripting 04-04-2020, 20:01
Replies: 5
Views: 474
Posted By Fyren
Re: String parsing problem

text[index] == ',' || text[index + 1] == EOS) && parenthesesCounter == 0

This is the expression you're using to determine whether to copy something over into your results. It can only possibly be...
Forum: General 03-29-2020, 15:28
Replies: 2
Views: 347
Posted By Fyren
Re: Alliedmodders Wiki style has changed.

This should be fixed now. Let me know if it isn't.
Forum: General 03-27-2020, 13:48
Replies: 2
Views: 347
Posted By Fyren
Re: Alliedmodders Wiki style has changed.

MediaWiki was updated. I poked someone about it.
Forum: Coding MM:S Plugins & SM Extensions 02-05-2020, 16:55
Replies: 8
Views: 2,160
Posted By Fyren
Re: Detour the same function twice

Detouring involves rewriting the instructions at the beginning of a function so it runs the detour instead. CDetour doesn't have a singleton/global manager to deal with two detours at the same spot,...
Forum: Scripting 01-12-2020, 14:15
Replies: 4
Views: 506
Posted By Fyren
Re: How to initialize an static array of type struct

static area a = { { 1.0, 2.0, 3.0 }, { 4.0, 5.0, 6.0 } };

Looks like there's a compiler bug if you use plain integers, though (like 1 instead of 1f or 1.0).
Showing results 1 to 25 of 500

 
Forum Jump

All times are GMT -4. The time now is 06:46.


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