working with array/DIM?
Posted: 2010-12-14 07:51:11
Hey guys... um have a very simple script, just need somebody to help me with that as this is my first time working with DIM. So I would write it in PHP and please help me to put it into yoko scripts
thanks
even if this looks like its dump to script something like this, ill modify it myself to make it works as i wish...
aye the thing is i have a lot of coordinates which id like to add/modify and a lumberjack script... so what i want is that the script GOTO comes on the coordinate, then it will run LUMBERJACK sub, once it finish then it goes to another coordinate,....
Code: Select all
$count = 0;
$array = array("1234,2345","2341,312"."2341,3214","21341,1324","2313,43431"); // UO COORDINATES
while( count($array) <= $count )
{
goto(current($array)); // GOTO is an YOKO sub
wait(1000)
lumberjack() // LUMBERJACK is an YOKO sub
$count++;
}
thanks

aye the thing is i have a lot of coordinates which id like to add/modify and a lumberjack script... so what i want is that the script GOTO comes on the coordinate, then it will run LUMBERJACK sub, once it finish then it goes to another coordinate,....