Sign in to follow this  
Followers 0
LVAC

Help me fix tris error!!!!

2 posts in this topic

#1 ·  Posted (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 by LVAC

Share this post


Link to post
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

Share this post


Link to post
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
Sign in to follow this  
Followers 0