Wassup, it seems that you can define integers directly, at least that is what Jay is doing in his [url=
http://macroquest2.com/phpBB2/viewtopic ... 4702#14702]rogue macro[url], and it works quite good.
YKW, I have no clue as to what your code is supposed to do, but I think I know what you want it to do..
Code: Select all
|** name.mac
Syntax: /macro name me#
**|
#define infome1 v0
#define infome2 v1
#define infome3 v2
Sub Main
/varset infome1 1000
/varset infome2 2000
/varset infome3 3000
/if "$p0"=="" {
/echo Syntax: /macro name me#
/endmacro
}
/echo $info$p0
/return
if you have a dynamic variablename, you have to call it either with 2 variables like:
$var1$var2
Or if it's a string and a variable the string have to come first like:
mystring$var
Reason is that the interpreter seems takes evertyhink from where it encounters a $ to the next $ or a space (probably also other things).
Ie if you make it like:
/varset var 1
$varinfo
Then the interpreter would look var a variable called "varinfo" and not a variable called "1info".
In PHP I know it is done like:
$myvar = "_1";
${$myvar."string"} = "Lala";
echo $_1string;
(If I remember correctly)
Dunno if this was what you were seeking, cause it sounded kinda like gibberish what you were asking :p
Heh, I'm sure this sounds like gibberish too, 25 hours going now, need sleep ;)