AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [HELP] with XVARS (https://forums.alliedmods.net/showthread.php?t=164081)

avril-lavigne 08-07-2011 04:40

[HELP] with XVARS
 
Lets say I need to create a cvar and get it from another plugins (5 or 6 plugins). I know a little about xvars

public dm_ffa = 0 in First Plugin


in second

Do I need to get ID and then > get_xvar_num from an ID ??? ?


yes I think . because I did so and it works......

ConnorMcLeod 08-07-2011 04:54

Re: [HELP] with XVARS
 
Learn to search : http://www.amxmodx.org/funcwiki.php?go=func&id=290
http://forums.alliedmods.net/showthread.php?t=138880
And yes, it works :) (Make sure the first plugin is declared first in plugins.ini)

Exolent[jNr] 08-07-2011 04:56

Re: [HELP] with XVARS
 
Quote:

Originally Posted by avril-lavigne (Post 1527403)
it works......

Then what did you need help with?

ConnorMcLeod 08-07-2011 05:02

Re: [HELP] with XVARS
 
Quote:

Originally Posted by Exolent[jNr] (Post 1527410)
Then what did you need help with?

Lol, i was sure i had read that it doesn't work :stupid:

avril-lavigne 08-07-2011 06:12

Re: [HELP] with XVARS
 
nope I searched. I found that topic . just sma contains too many functions,,,,, to debug it.and I felt like I am in a trap .... there is no simple examples in sma. thats why I created this thread.

ConnorMcLeod 08-07-2011 06:55

Re: [HELP] with XVARS
 
You say that it works, so what do you want to debug ?????

avril-lavigne 08-07-2011 10:36

Re: [HELP] with XVARS
 
No I mean that in xvars ATTACHED EXAMPLE plugin TOO much unneeded functions.... (http://forums.alliedmods.net/showthread.php?t=138880)

Hunter-Digital 08-07-2011 10:46

Re: [HELP] with XVARS
 
Just read the thread, forget about the sma, look at the codes, there are simple examples.


All times are GMT -4. The time now is 03:24.

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