You are not logged in.
Hello all, I'm new to CLEO stripting but I'm a programmer.
I want to know how to compare 2 cars (0@ and 1@) and check if they are the same car.
I'll use this to check if the player is entering the last car he was driving or if it is a "new" car.
I tried using 0@ == 1@ but compiler told me I can't compare these kinds of variables ):
Offline
Compiler doesn't know, which opcode needed here - for integer numbers (003B) or for float numbers (0045). You should specify types of these variables at start of script with var..end construction:
{$CLEO} var 0@: Integer 1@: Integer end
or you should write number of opcode:
003B: 0@ == 1@
Offline
I didn't know I could compare 2 cars as integers, thank you!
Offline