CLEO Help If string/text have color

CLEO related
Status
Not open for further replies.

JaggerJam

Active member
Joined
Sep 14, 2017
Messages
98
Solutions
1
Reaction score
21
Hello, I'm having a trouble with DXUT dialogs, about static text. I'm getting from cars licence plate and formatting in a string:
The problem is that some cars have "red" licence plate, which causes the string what I'm formatting to bug.
Can I somehow find out if the licence plate/text haves red color?
Have tried the 0C1A: 21@ = atoi 24@ but no result, in the log first digit is 21@, then in conclusion is a text and not a integer.
Can someone to help me out?[/MEDIA]
 

JaggerJam

Active member
Joined
Sep 14, 2017
Messages
98
Solutions
1
Reaction score
21
You can get textdraw text memory, because memory return everything , color as well
It's not a textdraw, here is the snnipet 0.3.7:
Code:
:getNumberPlate
// call @getNumberPlate 1 car_id 0@ retr_to 1@
1@ = SAMP.Base()
1@ += 0x21A0F8 // SAMP_INFO_OFFSET  0x21A0F8
0A8D: 1@ = read_memory 1@ size 4 virtual_protect 0
1@ += 0x3CD // Pools         0x3CD
0A8D: 1@ = read_memory 1@ size 4 virtual_protect 0
1@ += 0x1C // stVehiclePool  0x1C
0A8D: 1@ = read_memory 1@ size 4 virtual_protect 0

1@ += 0x1134
0@ *= 4
005a: 1@ += 0@ // pSAMP_Vehicle[0@]

0A8D: 1@ = read_memory 1@ size 4 virtual_protect 0
1@ += 0x93  //Number plate 0x93
ret 1 1@
 
Status
Not open for further replies.
Top