LVAC Posted August 29, 2009 Share Posted August 29, 2009 (edited) I wrote some code like this: $root=ProcessList() $enum=$root[0][0]-1 Global $pid[$enum+1] Global $pul[$enum+1] Global $pu[2] Global $pn[$enum+1] For $i=1 to $enum $pid[$i]=$root[$i][1] $pn[$i]=$root[$i][0] $pu=ProcessGetStats($root[$i][1], 0)/1024 $pul[$i]=$pu[0] Next An error appeared and I can't fix it. Please help me fix that error! Edited August 29, 2009 by LVAC Link to comment Share on other sites More sharing options...
WolfWorld Posted August 29, 2009 Share Posted August 29, 2009 I wrote some code like this: $root=ProcessList() $enum=$root[0][0]-1 Global $pid[$enum+1] Global $pul[$enum+1] Global $pu[2] Global $pn[$enum+1] For $i=1 to $enum $pid[$i]=$root[$i][1] $pn[$i]=$root[$i][0] $pu=ProcessGetStats($root[$i][1], 0)/1024 $pul[$i]=$pu[0] Next An error appeared and I can't fix it. Please help me fix that error! How you name your stuff is really bad. $root=ProcessList() $enum=$root[0][0]-1 Global $pid[$enum+1] Global $pul[$enum+1] Global $pn[$enum+1] For $i=1 to $enum $pid[$i]=$root[$i][1] $pn[$i]=$root[$i][0] $pu=ProcessGetStats($root[$i][1], 0) if $pu = 0 then ContinueLoop $pul[$i]=$pu[0]/1024 Next Main project - Eat Spaghetti - Obfuscate and Optimize your script. The most advance add-on.Website more of GadGets! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now