Global variables not read from another file which is already hooked.
#1

Note. I'm using y_hooks.

Let's assume there is a FileA.pwn. And there is an inc folder which has core.inc and AdminCMDs.inc.

Now core.inc has a global variable named 'g_whatever'.

I want to know whether or not I can access 'g_whatever' which resides in core.inc from AdminCMDs.inc.

Because so far. I've tried accessing a global variable from another file and it does not even recognize in the other file from where I'm trying to access it.

Any help would be appreciated.
Reply
#2

Nevermind. I totally ignored the fact that the variable that I was declaring was a static variable. The scope was the main issue.

Close this please.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)