Jump to content

Help me fix tris error!!!!


LVAC
 Share

Recommended Posts

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 by LVAC
Link to comment
Share on other sites

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
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...