Raised This Month: $120 Target: $400
 30% 

Showing results 1 to 25 of 500
Search took 0.11 seconds.
Search: Posts Made By: Fyren
Forum: Scripting 03-26-2019, 12:07
Replies: 11
Views: 1,117
Posted By Fyren
Re: Enum or array inside query callback

Everything is still a cell. The only thing that changed was the syntax.
Forum: Scripting 03-24-2019, 18:43
Replies: 11
Views: 1,117
Posted By Fyren
Re: Enum or array inside query callback

Use a handle-based type like ArrayList or StringMap. You can't pass a basic array.
Forum: Scripting 03-19-2019, 03:29
Replies: 4
Views: 835
Posted By Fyren
Re: ArrayList size difference

What version of the compiler are you using? This does not compile for me in any of 1.7, 1.8, 1.9, or 1.10.
Forum: Coding MM:S Plugins & SM Extensions 03-19-2019, 03:25
Replies: 2
Views: 501
Posted By Fyren
Re: Passing a reference parameter to CreateVCall

Off the top of my head, you don't want to memcpy the contents of CTakeDamageInfo. You want to put its address there and bintools/SH will do the right thing.

But, to debug, you should probably set...
Forum: Scripting 02-08-2019, 20:51
Replies: 6
Views: 1,092
Posted By Fyren
Re: Solve Exponential Base

Which specific operation are you claiming is wrong?

The output you gave us not helpful because it doesn't show the true value of mult, so we can't really verify anything. From only the code you...
Forum: Scripting 12-31-2018, 17:21
Replies: 13
Views: 791
Posted By Fyren
Re: pass handle through timer

The CreateEvent docs say not to just close the handle. I didn't look at the implementation to see why, but it may leak memory with the handle being closed.
Forum: Scripting 12-29-2018, 20:39
Replies: 13
Views: 791
Posted By Fyren
Re: pass handle through timer

I suppose you could clone the event handle and remember to close it later CreateEvent a new one, fill in its fields you care about, and Cancel it later.
Forum: Coding MM:S Plugins & SM Extensions 12-21-2018, 22:33
Replies: 6
Views: 1,055
Posted By Fyren
Re: CBaseAnimating::LookupSequence

Finding somewhere that calls it and pulling the address from there is one possibility.
Forum: Scripting 12-14-2018, 11:59
Replies: 4
Views: 488
Posted By Fyren
Re: TeleportEntity function?

They set the direction and velocity. It could be broken up to three separate functions (SetPosition, SetAngles/Direction, SetVelocity), but the function in the game itself is just one so it was left...
Forum: Scripting 12-14-2018, 11:54
Replies: 7
Views: 586
Posted By Fyren
Re: [L4D2] How to deliver extra arguments for callback function in HookConVarChange f

Handles are not pointers, they're more like handles in the Windows API or file descriptors.
Forum: Scripting 12-13-2018, 15:57
Replies: 7
Views: 586
Posted By Fyren
Re: [L4D2] How to deliver extra arguments for callback function in HookConVarChange f

You can't.

In your callback, you get the handle of the cvar, so you can use that to know which one it is. For example, you can check cvar == CurrentV[1], probably using a loop.
Forum: Scripting 12-10-2018, 21:27
Replies: 11
Views: 723
Posted By Fyren
Re: Memory leak on ADT Arrays

I meant all of it, at least concerning the handles. That'd include handle creation, closing, and also anywhere you put things into your array.
Forum: Scripting 12-08-2018, 12:10
Replies: 11
Views: 723
Posted By Fyren
Re: Memory leak on ADT Arrays

You probably need to post your code.
Forum: Scripting 11-15-2018, 15:02
Replies: 8
Views: 524
Posted By Fyren
Forum: Scripting 11-15-2018, 01:39
Replies: 8
Views: 524
Posted By Fyren
Re: Problem with some kind of "variables disaster"?

You could create dynamic arrays before 1.7. The old syntax for doing so was replaced in 1.7 and made an error (the one in the original post).
Forum: Scripting 11-13-2018, 19:40
Replies: 3
Views: 399
Posted By Fyren
Re: Inserting Hex code for text color

If you want literal bytes in the output, you have to use a series of %c. %x prints a 32-bit number as hex (i.e. a string).
Forum: Scripting 11-13-2018, 15:34
Replies: 4
Views: 476
Posted By Fyren
Re: How to apply a vector to a client?

Which still uses the same underlying teleport.
Forum: General 11-13-2018, 15:31
Replies: 1
Views: 152
Posted By Fyren
Re: cant not run ip range ban command

You already asked in the right place: that plugin's thread.
Forum: Scripting 11-12-2018, 17:05
Replies: 6
Views: 573
Posted By Fyren
Re: Entity Properties Gone After Update?

You should start out by saying which game and which kind of entity you were looking for those properties on.
Forum: Scripting 11-10-2018, 20:51
Replies: 1
Views: 385
Posted By Fyren
Re: How to fix these errors

public Action RetrieveWaveSettings(int wave, int client, int args, int event) has four parameters. RetrieveWaveSettings(g_iWave) is only passing one.
Forum: Scripting 11-10-2018, 00:17
Replies: 9
Views: 591
Posted By Fyren
Re: Crash on DHook detouring (dhooks.ext.dll + 0xc3e0)

I was wrong in my earlier reply. A read or offset entry are equivalent.

Though you found an alternate solution, in case someone happens to want the info:

If you have a signature for a...
Forum: General 11-09-2018, 17:57
Replies: 2
Views: 208
Posted By Fyren
Re: tank_hud.sp

If the include were missing, that would error instead. The include doesn't contain that function. Perhaps it's an older version.
Forum: Scripting 11-09-2018, 17:54
Replies: 9
Views: 591
Posted By Fyren
Re: Crash on DHook detouring (dhooks.ext.dll + 0xc3e0)

"Read" isn't for offsets, it's for indirections.
Forum: General 11-09-2018, 02:26
Replies: 2
Views: 211
Posted By Fyren
Re: Doubt with sm_warmode_on.cfg from SourceMod

You should customize the config to do whatever you want. The only purpose is to be run if you pick the "warmode on" item in the default adminmenu stuff. Since it's going to run sm plugins...
Forum: Scripting 11-01-2018, 12:21
Replies: 1
Views: 259
Posted By Fyren
Re: private profile kick fix?

This is not a scripting question. Post your issues with that plugin in its thread.
Showing results 1 to 25 of 500

 
Forum Jump

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


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