Hi all!
On my server I have a lot of different plugins running and most of them all access the ip, steamid and an id from my database for every user.
Since this makes a lot of the same variables in the different plugins I was thinking that maybe there is a better way.
Can I in plugin 1 access a variable set in plugin 2?
I know about the callfunc but I want to get to the variable without calling a function for it.
So in globalvars.amxx I create:
PHP Code:
new playerDbId[32], playerSteamId[32], playerIp[32];
I then sen these to the correct information when the user connects, and reset them at disconnect.
Now in savedeaths.amxx I want to save that the player XeroXer dies.
I then want to send it to the database with his db id.
Can I then access the playerDbId[id] from globalvars.amxx?
Any help and/or suggestions are welcome...
__________________