Raised This Month: $443 Target: $400
 110% 

Showing results 1 to 25 of 500
Search took 0.31 seconds.
Search: Posts Made By: Fyren
Forum: General 03-29-2020, 15:28
Replies: 2
Views: 181
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: 181
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: 645
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: 426
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: 840
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: 840
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: 1,966
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: 332
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: 669
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: 329
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: 329
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: 669
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: 480
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: 361
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: 769
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: 500
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...
Forum: Scripting 11-11-2019, 01:07
Replies: 3
Views: 421
Posted By Fyren
Re: About QueryClientConVar value

The engine function that's used to query client convars only provides back a string for the value.
Forum: General 11-11-2019, 00:57
Replies: 1
Views: 414
Posted By Fyren
Re: basecommands.smx and basevotes.smx

You're going to have to provide more information. Maybe try running Accelerator to see if you can get a crash dump.
Forum: Scripting 10-26-2019, 13:39
Replies: 2
Views: 1,755
Posted By Fyren
Re: Correct way you use a common functions script

There's documentation on how to do this here: https://wiki.alliedmods.net/Creating_Natives_(SourceMod_Scripting)

Perhaps also check out:...
Forum: Scripting 10-26-2019, 13:35
Replies: 4
Views: 662
Posted By Fyren
Re: INativeInterface

This was something removed from SM in 2015. There's two options and it's possible neither are feasible. First is run an ancient version of SM (like somewhere around 1.7.1). I'd guess if this is...
Forum: Scripting 10-09-2019, 12:00
Replies: 4
Views: 591
Posted By Fyren
Re: Immunity level after SetUserFlagBits ?

The immunity level is only ever what you set, whether you're using the config files/default admin plugins or the SP functions. If it's not set, it's zero.
Forum: Scripting 10-06-2019, 17:46
Replies: 3
Views: 610
Posted By Fyren
Re: AddUserFlags

No. The ... in the docs mean it's a variadic function. AdminFlag is an enum and you pass it any number of individual flags.

You might be looking for SetUserFlagBits.
Forum: Metamod:Source Questions 10-03-2019, 22:13
Replies: 5
Views: 2,492
Posted By Fyren
Re: IClient

If the layout of INetChan changes (which can happen when the game patches) and you're using an older revision of the SDK, then calling its functions can break depending on what the change was. The...
Forum: Metamod:Source Questions 10-03-2019, 08:37
Replies: 5
Views: 2,492
Posted By Fyren
Re: IClient

static_casting pointers is a noop. It's not the cause of your crash.

Off the top of my head, check to make sure all your pointers are valid. The code only checks pNetchan. The INetChan or...
Forum: General 09-16-2019, 20:35
Replies: 2
Views: 810
Posted By Fyren
Re: Line contained too many invalid tokens

You have a syntax error of some kind. It may be on the line the compiler reports, but it may be before that as well.
Showing results 1 to 25 of 500

 
Forum Jump

All times are GMT -4. The time now is 21:44.


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