Raised This Month: $165 Target: $400
 41% 

Showing results 1 to 25 of 500
Search took 0.17 seconds.
Search: Posts Made By: Fyren
Forum: Scripting Yesterday, 03:37
Replies: 2
Views: 132
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, 16:55
Replies: 5
Views: 246
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, 17:09
Replies: 3
Views: 162
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, 18:39
Replies: 3
Views: 162
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, 23:24
Replies: 5
Views: 246
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, 23:17
Replies: 1
Views: 207
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, 17:34
Replies: 1
Views: 288
Posted By Fyren
Re: when is new gamedata loaded

If you modify gamedata, you have to restart the server.
Forum: Scripting 11-21-2019, 13:52
Replies: 4
Views: 521
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, 07:08
Replies: 3
Views: 395
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, 02:07
Replies: 3
Views: 336
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, 01:57
Replies: 1
Views: 320
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, 14:39
Replies: 2
Views: 911
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, 14:35
Replies: 4
Views: 447
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, 13:00
Replies: 4
Views: 490
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, 18:46
Replies: 3
Views: 520
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, 23:13
Replies: 5
Views: 1,378
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, 09:37
Replies: 5
Views: 1,378
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, 21:35
Replies: 2
Views: 693
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.
Forum: General 09-01-2019, 12:40
Replies: 2
Views: 741
Posted By Fyren
Re: Plugin breaks server, can't use plugin chat commands on server

Does no command at all work in chat, even for base SM stuff? Does the attempted command still show up in chat?

There's two possibilities off the top of my head:

First are the settings for...
Forum: Scripting 08-13-2019, 17:19
Replies: 4
Views: 853
Posted By Fyren
Re: Modular plugin

#include is basically the same as copying and pasting. Your example code is one plugin, just split up into multiple files. That's why you're getting an error about defining the same function...
Forum: Scripting 07-23-2019, 14:25
Replies: 4
Views: 1,030
Posted By Fyren
Re: Callbacks not executed

This isn't really a scripting question. If REST in Pawn isn't reporting any errors in the SM logs, you're probably going to have to start debugging it if you know C++.
Forum: Scripting 07-23-2019, 14:10
Replies: 4
Views: 988
Posted By Fyren
Re: Removing clientside mutes against admins

There is a reason that the documentation says GetClientListening and SetClientListening are deprecated. Without testing, your code may just work if you remove the SetClientListening call.
Forum: Scripting 06-28-2019, 01:32
Replies: 32
Views: 10,959
Posted By Fyren
Re: Enum Structs Available This Holiday Season

As the very first post says, this feature is merely syntactic sugar.
Forum: Coding MM:S Plugins & SM Extensions 06-11-2019, 00:49
Replies: 4
Views: 2,838
Posted By Fyren
Re: Compiling with MM:S after Git 963

Our official builds are clang 3.8 and VS2015.
Forum: Scripting 05-30-2019, 21:36
Replies: 32
Views: 10,959
Posted By Fyren
Re: Enum Structs Available This Holiday Season

For now, I think you can do Foo i; i = bar[0];. I checked that it compiled, but not that it worked as expected. Assignment here is handled differently than initialization and initialization only...
Showing results 1 to 25 of 500

 
Forum Jump

All times are GMT -4. The time now is 02:04.


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