Raised This Month: $300 Target: $400
 75% 

Showing results 1 to 25 of 500
Search took 0.03 seconds.
Search: Posts Made By: Fyren
Forum: Scripting 05-22-2020, 13:22
Replies: 3
Views: 180
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: 180
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: 206
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: 234
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: 532
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: 271
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: 467
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: 190
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: 367
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: 311
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: 311
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: 1,355
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: 467
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).
Forum: Coding MM:S Plugins & SM Extensions 01-09-2020, 18:32
Replies: 4
Views: 1,553
Posted By Fyren
Re: Hooking IServerTools finctions leads to compile-time errors

Off the top of my head, I'm not sure. If the reason it can't infer the template parameters is because the function is an overload, you could try casting the MFP and do something like this:
...
Forum: Coding MM:S Plugins & SM Extensions 01-04-2020, 16:30
Replies: 4
Views: 1,553
Posted By Fyren
Re: Hooking IServerTools finctions leads to compile-time errors

As the docs say, you need to use the fourth parameter to the macro for overloads. Make them 0, 1, and 2 (or whatever as long as they're different).
Forum: Off-Topic 12-29-2019, 00:32
Replies: 4
Views: 2,320
Posted By Fyren
Re: Triggering Iphone Alarm from night bell

You could use something like an Arduino to listen for the voltage change that happens when the bell rings/the circuit closes, which could then do whatever. If the iPhone and Arduino are always on...
Forum: Scripting 12-15-2019, 02:37
Replies: 2
Views: 347
Posted By Fyren
Re: Invalid database handle 0 (error 4)

Invalid database Handle 0 means your DB handle is INVALID_HANDLE/null.
Forum: Scripting 12-14-2019, 15:55
Replies: 8
Views: 714
Posted By Fyren
Re: [CS:GO] AddNormalSoundHook is getting as native error

Older verions of the compiler had issues where it reported errors as happening on the next line, which could end up reporting the error as being in the wrong file if the next line had an #include or...
Forum: Scripting 12-13-2019, 16:09
Replies: 3
Views: 354
Posted By Fyren
Re: Offsets and signatures

That's pretty much what needs to be done. Also going from an entity index to its actual address, usually.

In the case of CCSPlayerResource, in a script you should probably just do...
Forum: Scripting 12-12-2019, 17:39
Replies: 3
Views: 354
Posted By Fyren
Re: Offsets and signatures

A simplified explanation of netprops is they're properties of C++ objects on the server that, when changed, get transmitted to clients so that the values stay in sync.

A simplified explanation of...
Forum: Scripting 12-11-2019, 22:24
Replies: 8
Views: 714
Posted By Fyren
Re: [CS:GO] AddNormalSoundHook is getting as native error

You should provide your actual code and not screenshots. Your paths look like you might be using includes or the compiler from 1.8, also.
Forum: General 12-11-2019, 22:17
Replies: 1
Views: 507
Posted By Fyren
Re: possible bug with sdk2013, but unable to determine

Could try changing the calls to swap in CUtlBlockMemory::Swap to V_swap, but I am unsure.
Forum: General 11-24-2019, 16:34
Replies: 1
Views: 378
Posted By Fyren
Re: when is new gamedata loaded

If you modify gamedata, you have to restart the server.
Forum: Scripting 11-21-2019, 12:52
Replies: 4
Views: 878
Posted By Fyren
Re: [CSGO] Error Log

You should only ever pass a position that you got from ReadPackPosition. How SM decides to index things/lay out the datapack is an implementation detail.
Forum: Scripting 11-20-2019, 06:08
Replies: 3
Views: 552
Posted By Fyren
Re: GetAdminFlag Tag Mismatch

The defines like ADMFLAG_RESERVATION aren't what those functions want.

Here's the doc for GetAdminFlag: https://sm.alliedmods.net/new-api/admin/GetAdminFlag

You can click on "AdminFlag" for the...
Showing results 1 to 25 of 500

 
Forum Jump

All times are GMT -4. The time now is 13:22.


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