AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Logging every cvar on a mod? (https://forums.alliedmods.net/showthread.php?t=49372)

hlstriker 01-02-2007 16:39

Logging every cvar on a mod?
 
Hi, does anyone know how I can log every cvar there is on a mod?

stupok 01-02-2007 16:56

Re: Logging every cvar on a mod?
 
cvarlist in the server console

If you mean log when a cvar is changed, as far as I know it cannot be done with AMXX.

hlstriker 01-02-2007 17:05

Re: Logging every cvar on a mod?
 
Oh, I didn't know the engine came with a command already for that.

Thanks.

Hawk552 01-02-2007 18:24

Re: Logging every cvar on a mod?
 
Quote:

Originally Posted by stupok69 (Post 422877)
cvarlist in the server console

If you mean log when a cvar is changed, as far as I know it cannot be done with AMXX.

Yeah it can, it'll just use an insane amount of memory.

stupok 01-02-2007 20:41

Re: Logging every cvar on a mod?
 
Please show me how. http://forums.alliedmods.net/showthr...t=execute+cvar

Hawk552 01-02-2007 22:36

Re: Logging every cvar on a mod?
 
You'd need a list of every cvar to be logged, something like Array (so it doesn't need to be hard coded in terms of size), and a ton of server resources (checking probably every frame).

It's possible, but again probably not worth it.

stupok 01-03-2007 00:37

Re: Logging every cvar on a mod?
 
I thought you meant actually catch when the cvar was changed.. got my hopes up. :cry:

Hawk552 01-03-2007 12:04

Re: Logging every cvar on a mod?
 
Quote:

Originally Posted by stupok69 (Post 423023)
I thought you meant actually catch when the cvar was changed.. got my hopes up. :cry:

No, that's not really possible. It might be possible if you did it with a module (i.e. catch the pointers of the cvars and any time the memory changes, do something), but not truly possible in Pawn.


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

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.