If string/text have color

Status
Not open for further replies.

JaggerJam

Active Member
Joined
Sep 14, 2017
Messages
35
Likes
7
Points
23
#1
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: [email protected] = atoi [email protected] but no result, in the log first digit is [email protected], then in conclusion is a text and not a integer.
Can someone to help me out?[/MEDIA]
 
OP
OP
J

JaggerJam

Active Member
Joined
Sep 14, 2017
Messages
35
Likes
7
Points
23
#7
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 [email protected] retr_to [email protected]
[email protected] = SAMP.Base()
[email protected] += 0x21A0F8 // SAMP_INFO_OFFSET  0x21A0F8
0A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 0
[email protected] += 0x3CD // Pools         0x3CD
0A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 0
[email protected] += 0x1C // stVehiclePool  0x1C
0A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 0

[email protected] += 0x1134
[email protected] *= 4
005a: [email protected] += [email protected] // pSAMP_Vehicle[[email protected]]

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