First: SRC WILL NEVER have VARS, since vars are server handled and var.test1 will be the same to every item/player/gm/npc/house/whatever, so there's no reason to use src.var*.
Second: You have to compare one string at each time, 150,110 (in example) are 2 so you can separate them and compare in 2 checks or use str* intrinsic functions.
Using STR*:
if (strcmpi("<var0.test1>","<p.x>,<p.y>")==0)// == 0 means, in a simple explanation, 0 differences ... so a total match.
if (strmatch("<var0.test1>","<p.x>,<p.y>")==1)// this one should work too
Separating args:
You first need a function to get each argument
Code:
[FUNCTION argvx]
//Usage: <argvx 0,110,120,150>
//First number = arg number to retrieve, 0 = first one in this case
//the rest is the real args
local.string=<argv0>//argv0 = first number (the one telling what arg to retrieve)
args=<streat <args>>//removing first arg ( the number )
if (<isempty <args>>)//just a check to avoid problems with empty args
serv.log Error: empty args
return -1 //this is what will return, feel free to change
elseif (<argv <args>> < <local.string>)//check if the given id is higher than the real amount of args.
serv.log Error: Too few arguments.
return 0
endif
return <argv<dlocal.string>>
Then you have to use it in your code like this:
if (<argvx 0,<var0.test1>>==<p.x> && <argvx 1,<var0.test1>>)