Quote:
Originally Posted by Arkshine
It's an example based on his attempt above. What you say makes no sense. I don't see the problem to set a value in a random function in the plugin1 then checking it's value in the plugin2...
|
I don't see a lot of sense in your code really. What you are doing is this:
PHP Code:
public myVar;
// [...]
DummyFunction()
{
set_xvar_num( get_xvar_id( "myVar" ), 1 );
}
When you could do this:
PHP Code:
public myVar;
DummyFunction()
{
MyVar = 1;
}
I don't think there's need for an example how to assign a variable but if it's really needed then at least don't use useless native calls.