CLEO Help Compare vehicles

CLEO related
Status
Not open for further replies.

Badonga

Active member
Joined
Aug 5, 2013
Messages
71
Reaction score
0
How check I make this condition:

Code:
If vehicleIamDriving = vehiclePlayerIDisIn
then
//do something
 

Codex1337

Active member
Joined
Mar 1, 2014
Messages
170
Reaction score
1
Badonga link said:
How check I make this condition:

Code:
If vehicleIamDriving = vehiclePlayerIDisIn
then
//do something

Get your vehicle ID to a variable and the other vehicle id you want to a variable.

Then compare the variable by this opcode 003B:  18@ == 21@  // (int)
 

Badonga

Active member
Joined
Aug 5, 2013
Messages
71
Reaction score
0
Alright that is good but the problem here is that I do not know which function it is to retrieve those information  :sadpepe:.
 
Joined
Feb 18, 2005
Messages
2,963
Reaction score
267
Code:
03C0: 0@ = actor $PLAYER_ACTOR car

0B20: samp 2@ = actor_handle_by_samp_player_id 1@
03C0: 3@ = actor 2@ car

use checks like 056E:   car 0@ defined
 

Badonga

Active member
Joined
Aug 5, 2013
Messages
71
Reaction score
0
springfield link said:
Code:
03C0: 0@ = actor $PLAYER_ACTOR car

0B20: samp 2@ = actor_handle_by_samp_player_id 1@
03C0: 3@ = actor 2@ car

use checks like 056E:   car 0@ defined

almost there. please check your PM.  :fuck_yea:
 
Joined
Feb 18, 2005
Messages
2,963
Reaction score
267
Why PM me if you have this topic open and can ask for help here?  :imoverit:

Like i said..
Code:
use checks like 056E:   car 0@ defined
 

Badonga

Active member
Joined
Aug 5, 2013
Messages
71
Reaction score
0
That only checks if that car exists right? Please read the PM. You will understand more when you see the code...
Basically all I want to check if ME and <player ID> is in a same vehicle or not at any given time.
 
Status
Not open for further replies.
Top