CLEO Help array and for loop

CLEO related
Status
Not open for further replies.

Rat

Active member
Joined
Sep 24, 2013
Messages
137
Reaction score
0
i'm trying to compare the player's skin with an array of cop skins, but some error is showing up.
here's the screenshot:

963ddd33cb.png

here's the code:
Code:
{$CLEO .cs}

thread '5-0'

0000:

REPEAT
    wait 0
UNTIL 0AFA:   SAMP_IS_READY

VAR
    $CopSkins: array 15 of Integer 
END

$CopSkins[0] = 76
$CopSkins[1] = 150
$CopSkins[2] = 163
$CopSkins[3] = 164
$CopSkins[4] = 165
$CopSkins[5] = 166
$CopSkins[6] = 280
$CopSkins[7] = 281
$CopSkins[8] = 282
$CopSkins[9] = 283
$CopSkins[10] = 284
$CopSkins[11] = 285
$CopSkins[12] = 286
$CopSkins[13] = 287
$CopSkins[14] = 288 

WHILE TRUE
WAIT 0
    IF
        0B61: SAMP IS_LOCAL_PLAYER_SPAWNED
    THEN
        0665:   get_actor $PLAYER_ACTOR model_to 2@
        FOR $i = 0 to 14 STEP 1
            IF
                $CopSkins[$i] == 2@            
            THEN
                // execute shit here
            END
        END
    END    
END
 
Status
Not open for further replies.
Top